distrax.utils.fileio module#

Functions relevant to file input/output operations

change_ownership(path, user, group[, admin])

Change the ownership of a file or directory.

copy_file(src, dest[, admin])

Copy a file from src to dest.

create_dir(path, mode[, admin])

Create new directory with the path and mode specified.

recursive_change_ownership(path, user, group)

Recursively change the ownership of a directory and the files within.

remove_dir(path[, admin])

Remove a directory and contents of the path specified.

remove_file(path[, admin])

Remove a file at the path specified.

change_permissions(path, mode)

Change a files permission to the mode specified.

recursive_change_permissions(path, mode)

Recursively change the permissions of a directory and the files to the mode.

append_file_in_folder(folder, ...)

Append file_to_update with the files in files_to_append.