Skip to main content
Lisez, écrivez et gérez des fichiers et des dossiers.

Fonctions disponibles

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

Supprime un regular file existant dans le workspace.

delfolder

Supprime un folder existant dans le workspace de facon recursive avec recursive folder deletion.

getcustomasset

Copie un regular workspace file existant vers ExtraContent/<hwid>/ et renvoie un rbxasset:// string pour le asset path copie.

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

Cree un directory dans le workspace avec recursive folder creation, y compris les missing parent directories.

openfiledialog

Ouvre un Windows file-open dialog with Windows file picker et renvoie le fichier selectionne comme file item.

openfilesdialog

Ouvre un Windows file-open dialog with Windows file picker avec multi-select active et renvoie les fichiers selectionnes comme valeurs file item.

openfolderdialog

Ouvre un Windows folder picker with Windows file picker avec folder selection mode et renvoie le dossier selectionne comme file item.

readfile

Lit un existing regular file dans le workspace en binary mode et renvoie ses bytes comme Lua string.

savefiledialog

Ouvre un Windows save dialog with Windows save dialog, ecrit les Lua string bytes fournis dans le selected path et renvoie le saved file comme file item.

writefile

Ecrit des Lua string bytes dans un fichier dans le workspace, cree les missing parent directories et remplace les file contents si le fichier existe deja.