change_owner

pub fun change_owner(user: Text, path: Text): Bool

Changes the owner of a file.

If the file doesn't exist, it returns false

create_dir

pub fun create_dir(path: Text): Null

Creates a directory with all parent directories as required.

pub fun create_symbolic_link(origin: Text, destination: Text): Bool

Creates a symbolic link.

If the file doesn't exist, it returns a boolean and prints a message.

dir_exist

pub fun dir_exist(path)

Checks if a directory exists.

file_append

pub fun file_append(path, content)

Appends content to a file.

Doesn't check if the file exists.

file_exist

pub fun file_exist(path)

Checks if a file exists.

file_read

pub fun file_read(path)

Gets file contents from a path.

file_write

pub fun file_write(path, content)

Writes content to a file.
Doesn't check if the file exist

make_executable

pub fun make_executable(path: Text): Bool

Sets a file as executable.

If the file doesn't exist, it returns a boolean and prints a message.