Files
Inherits Instance.
A service: the global Files is the game's one Files.
Methods
CopyAsync(from: string, to: string): ()Yields. Needs theFilespermission.CreateDirectory(path: string): ()Needs theFilespermission.CreateSymlink(target: string, path: string): ()Needs theFilespermission.CreateTemporaryDirectory(parent: string?): stringNeeds theFilespermission.GetInfo(path: string): {Type: "File" | "Directory" | "Other", Size: number, ModifiedTime: number}?Needs theFilespermission.GetSha256Async(path: string): stringYields. Needs theFilespermission.ListDirectory(path: string): {string}Needs theFilespermission.Move(from: string, to: string): ()Needs theFilespermission.ReadFile(path: string): stringNeeds theFilespermission.Remove(path: string): booleanNeeds theFilespermission.RemoveAll(path: string): numberNeeds theFilespermission.WriteFile(path: string, contents: string): ()Needs theFilespermission.
Inherited
From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.