πfiles
Example available!
Functions:
create_folder
files.create_folder(path: string)
Name
Type
Description
path
string
New folder path
read
files.read(path: string): any
Name
Type
Description
path
string
Path to the file
Returns contents of the specified file.
write
files.write(path: string, contents: string[, is_binary: boolean]): boolean
Name
Type
Description
path
string
Path to the file
contents
any
Contents the file should be set to
is_binary
boolean
Is contents a binary
Replaces contents of the specified file. Returns false on failure.
get_crc32
files.get_crc32(path: string): number
Name
Type
Description
path
string
Path to the file
Returns the crc32 checksum of the file.
Last updated
