Expand description
Contains utilities to manage files Contains utilities for copying, deleting, sorting, hashing files.
Structs§
- Dir
- A struct that represents a single directory
- File
- A struct that represents a single file
- File
Sets - A struct that represents sets of different types of files
- Symlink
- A struct that represents a single symbolic link
Traits§
- FileOps
- Interface for all file structs to perform common operations
Functions§
- compare_
and_ copy_ files - Compares all files in
files_to_compare
insrc
with all files infiles_to_compare
indest
and copies them over if they are different, in parallel - copy_
files - Copies all given files from
src
todest
in parallel - delete_
files - Deletes all given files in parallel
- delete_
files_ sequential - Deletes all given files sequentially
- get_
all_ files - Recursively traverses a directory and all its subdirectories and returns a FileSets that contains all files and all directories
- hash_
file - Generates a hash of the given file, using the Seahash non-cryptographic hash function
- hash_
file_ secure - Generates a hash of the given file, using the BLAKE2b cryptographic hash function
- sort_
files - Sorts (unstable) file paths in descending order by number of components, in parallel