πfile
append
file.append(path: string, data: string)
Name
Type
Description
path
string
path
data
string
data
Replaces contents of the specified file
write
file.write(path: string, data: string)
Name
Type
Description
path
string
path
data
string
data
Replaces contents of the specified file
read
file.read(path: string): string
Name
Type
Description
path
string
path
Returns contents of the specified file.
exists
file.exists(path: string): boolean
Name
Type
Description
path
string
path
Returns true, if the file exists.
create_dir
file.create_dir(path: string)
Name
Type
Description
path
string
path
Creates a directory on a specific path.
get_directory_files
file.get_directory_files(path: string): table
Name
Type
Description
path
string
path
Returns a table with all files on a specific path.
Last updated