File System
Overview
Path Rules
✔ Paths must be relative
✔ Parent-directory traversal is not allowed
✔ Scripts cannot escape the main scripting directory
Global Functions
create_file(path, [data]) → boolean
create_file(path, [data]) → booleanExample:
create_directory(path) → boolean
create_directory(path) → booleanExample:
read_file(path) → boolean, string
read_file(path) → boolean, stringExample:
does_file_exist(path) → boolean
does_file_exist(path) → booleanExample:
query_directory(path, include_dirs?, include_files?, extensions_table?) → boolean, table
query_directory(path, include_dirs?, include_files?, extensions_table?) → boolean, tableParameters:
Name
Type
Default
Description
Example:
Filter example:
delete_file(path) → boolean
delete_file(path) → booleanExample:
delete_directory(path) → boolean
delete_directory(path) → booleanExample:
Example Test Script
Last updated