Category

Filesystem

Read, write, and manage files and folders.

Category guide

Overview

Use this overview to understand the category before opening a specific function.
  • See what this group of functions is meant to solve.
  • Compare function names and descriptions in one table.
  • Open a function for syntax, arguments, returns, and examples.

Filesystem

Available functions

15 functions
FunctionDescription
appendfileAppends raw Lua string bytes to a workspace file using binary append mode.
delfileDeletes an existing regular file inside the workspace.
delfolderDeletes an existing folder inside the workspace recursively with recursive folder deletion.
getcustomassetCopies an existing regular workspace file into ExtraContent/<hwid>/ and returns an rbxasset:// string for the copied asset path.
isfileReturns whether a path resolved inside the workspace exists and is a regular file.
isfolderReturns whether a path resolved inside the workspace exists and is a directory.
listfilesReturns an array table of the direct children of an existing workspace directory.
loadfileReads a workspace file, compiles its contents with the Luau compiler, and returns the loaded Luau function without executing it.
makefolderCreates a directory inside the workspace with recursive folder creation, including missing parent directories.
openfiledialogOpens a Windows file-open dialog with Windows file picker and returns the selected file as a file item.
openfilesdialogOpens a Windows file-open dialog with Windows file picker with multi-select enabled and returns the selected files as file item values.
openfolderdialogOpens a Windows folder picker with Windows file picker with folder selection mode and returns the selected folder as a file item.
readfileReads an existing regular file inside the workspace in binary mode and returns its bytes as a Lua string.
savefiledialogOpens a Windows save dialog with Windows save dialog, writes the provided Lua string bytes to the selected path, and returns the saved file as a file item.
writefileWrites Lua string bytes to a file inside the workspace, creating missing parent directories and replacing the file contents if the file already exists.