Чтение, запись и управление файлами и папками.
Доступные функции
appendfile
Appends raw Lua string bytes to a workspace file using binary append mode. The file may be created if its parent folder exists.
delfile
Удаляет существующий regular file внутри workspace.
delfolder
Удаляет существующий folder внутри workspace рекурсивно через recursive folder deletion.
getcustomasset
Копирует существующий regular workspace file в ExtraContent/<hwid>/ и возвращает rbxasset:// string для скопированного asset path.
isfile
Returns whether a path resolved inside the workspace exists and is a regular file.
isfolder
Returns whether a path resolved inside the workspace exists and is a directory.
listfiles
Returns an array table of the direct children of an existing workspace directory.
loadfile
Reads a workspace file, compiles its contents with the Luau compiler, and returns the loaded Luau function without executing it.
makefolder
Создает directory внутри workspace через recursive folder creation, включая missing parent directories.
openfiledialog
Открывает Windows file-open dialog через Windows file picker и возвращает выбранный файл как file item.
openfilesdialog
Открывает Windows file-open dialog через Windows file picker с включенным multi-select и возвращает выбранные файлы как значения file item.
openfolderdialog
Открывает Windows folder picker через Windows file picker с folder selection mode и возвращает выбранную папку как file item.
readfile
Читает existing regular file внутри workspace в binary mode и возвращает его bytes как Lua string.
savefiledialog
Открывает Windows save dialog через Windows save dialog, записывает переданные Lua string bytes в selected path и возвращает saved file как file item.
writefile
Записывает Lua string bytes в файл внутри workspace, создает missing parent directories и заменяет file contents, если файл уже существует.