Skip to content

Files ​

Inherits Instance.

A service: the global Files is the game's one Files.

Methods ​

  • CopyAsync(from: string, to: string): () Yields. Needs the Files permission.
  • CreateDirectory(path: string): () Needs the Files permission.
  • CreateSymlink(target: string, path: string): () Needs the Files permission.
  • CreateTemporaryDirectory(parent: string?): string Needs the Files permission.
  • GetInfo(path: string): {Type: "File" | "Directory" | "Other", Size: number, ModifiedTime: number}? Needs the Files permission.
  • GetSha256Async(path: string): string Yields. Needs the Files permission.
  • ListDirectory(path: string): {string} Needs the Files permission.
  • Move(from: string, to: string): () Needs the Files permission.
  • ReadFile(path: string): string Needs the Files permission.
  • Remove(path: string): boolean Needs the Files permission.
  • RemoveAll(path: string): number Needs the Files permission.
  • WriteFile(path: string, contents: string): () Needs the Files permission.

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.

Apache License 2.0