Filesystem
Read and write files in the workspace folder.
33 functions
| Function | Summary |
|---|---|
appendfileappend_file | Appends bytes to a workspace file, creating the file when needed. |
appendfileasync | Appends bytes to a workspace file. |
delfiledeletefiledel_file | Deletes one workspace file. |
delfolderdeletefolderdel_folder | Removes a workspace directory and its contents. |
dofiledo_file | Compiles and runs a workspace Luau file, returning its results. |
getcustomassetgetsynassetget_custom_asset | Registers a workspace file as an asset address usable by the game. |
getfileextension | Returns a path's extension without the dot. |
getfilesize | Returns the size of a workspace file. |
isfileis_file | Tests whether a workspace path names a regular file. |
isfolderis_folder | Tests whether a workspace path names a directory. |
item:Append | Adds bytes to the end of the selected file. |
item:Delete | Deletes the selected item. |
item:GetName | Returns the display name of the chosen file or folder. |
item:IsFile | Reports whether the chosen item represents a file. |
item:IsFolder | Reports whether the chosen item represents a folder. |
item:List | Lists children of the selected folder as new dialog items. |
item:MakeFolder | Creates one child folder beneath the selected folder. |
item:Read | Reads the bytes of the chosen file. |
item:Write | Replaces the selected file’s contents. |
listfileslist_files | Lists the immediate files and directories inside a workspace directory. |
loadfileload_file | Reads and compiles a workspace Luau file without executing it. |
loadfileasync | Compiles a workspace file without executing it. |
makefoldermake_folder | Creates a folder inside the workspace. |
openfiledialog | Asks the user to select one file. |
openfilesdialog | Asks the user to select multiple files. |
openfolderdialog | Asks the user to select one folder. |
readfileread_file | Reads a workspace file as bytes. |
readfileasync | Reads the complete contents of a workspace file. |
renamefilemovefile | Moves a workspace file to a new path. |
savefiledialog | Asks the user where to save the supplied bytes, then writes them to the chosen file. |
writecustomasset | Writes a file and returns the asset id for it in one call. |
writefilewrite_file | Creates or replaces a workspace file. |
writefileasync | Creates or replaces a workspace file. |
No function in Filesystem matches that filter.
