πŸ—ƒοΈfile

Functions:

append

file.append(path: string, data: string)

NameTypeDescription

path

string

path

data

string

data

Replaces contents of the specified file

write

file.write(path: string, data: string)

NameTypeDescription

path

string

path

data

string

data

Replaces contents of the specified file

read

file.read(path: string): string

NameTypeDescription

path

string

path

Returns contents of the specified file.

exists

file.exists(path: string): boolean

NameTypeDescription

path

string

path

Returns true, if the file exists.

create_dir

file.create_dir(path: string)

NameTypeDescription

path

string

path

Creates a directory on a specific path.

get_files_from_dir

file.get_files_from_dir(path: string): table

NameTypeDescription

path

string

path

Returns a table with all files on a specific path.

Last updated