gigl.common.utils.local_fs#

Functions

append_line_to_file

Append a line to a file if it doesn't already exist in the file.

copy_files

Copy files from source paths to destination paths.

count_files_with_uri_prefix

Count the number of files with a given URI prefix.

create_empty_file_if_none_exists

Create an empty file if it doesn't already exist.

create_file_symlinks

Create symlinks between source paths and link paths.

delete_and_create_local_path

Deletes the existing local directory at the given path and creates a new one.

delete_local_directory

Deletes a local directory.

does_path_exist

Check if a file exists.

list_at_path

List all files and directories in the given local path.

remove_file_if_exist

Remove file with os if file exists.

remove_file_or_folder_if_exist

Remove a file or folder if it exists.

remove_folder_if_exist

Remove a folder if it exists.

remove_line_from_file

Remove a line from a file if it exists in the file.

Classes

FileSystemEntity

Class representing the entities in a file system.