ファイルとフォルダーの読み取り、書き込み、管理を行います。
利用できる関数
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
workspace 内に存在する regular file を削除します。
delfolder
workspace 内に存在する folder を recursive folder deletion で recursive に削除します。
getcustomasset
存在する regular workspace file を ExtraContent/<hwid>/ にコピーし、コピーされた asset path の rbxasset:// string を返します。
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
recursive folder creation を使い、missing parent directories を含めて workspace 内に directory を作成します。
openfiledialog
Windows file picker 経由で Windows file-open dialog を開き、選択されたファイルを file item として返します。
openfilesdialog
Windows file picker を通じて multi-select を有効にした Windows file-open dialog を開き、選択されたファイルを file item 値として返します。
openfolderdialog
Windows file picker と folder selection mode によって Windows folder picker を開き、選択されたフォルダーを file item として返します。
readfile
workspace 内の existing regular file を binary mode で読み、その bytes を Lua string として返します。
savefiledialog
Windows save dialog を通じて Windows save dialog を開き、指定された Lua string bytes を selected path に書き込み、saved file を file item として返します。
writefile
workspace 内のファイルへ Lua string bytes を書き込み、missing parent directories を作成し、ファイルがすでに存在する場合は file contents を置き換えます。