πŸ—ƒοΈfile

Functions:

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_files_from_dir

file.get_files_from_dir(path: string): table

Name
Type
Description

path

string

path

Returns a table with all files on a specific path.

Last updated