Module files

Source
Expand description

Utilities for File Operations

Functions§

collect_arc_files
Collects archive files from the specified path, either as a directory or a single file.
collect_files
Collects files from the specified path, either as a directory or a single file.
find_arc_files
Finds all archive files in the specified directory and its subdirectories.
find_files
Finds all files in the specified directory and its subdirectories.
make_sure_dir_exists
Ensures that the parent directory for the specified path exists, creating it if necessary.
read_file
Reads the content of a file or standard input if the path is “-”.
relative_path
Returns the relative path from root to target.
write_file
Writes content to a file or standard output if the path is “-”.