Skip to main content

Crate find_identical_files

Crate find_identical_files 

Source

Structs§

Arguments
Command Line Arguments
FileInfo
Individual file information
GroupInfo
Grouped file information
Key
This key will be used by FileInfo and GroupInfo.
PathInfo
Detailed information about a specific file path within an identical group.
TotalInfo
Summarize information for all files found in the directory

Enums§

Algorithm
Enum representing supported hash algorithms.
FIFError
FIF Error enum
Procedure
Represents the stages of the file deduplication pipeline.

Constants§

CSV_FILENAME
XLSX_FILENAME

Traits§

FileExtension
GroupExtension
PathBufExtension
Extension trait for PathBuf to facilitate hashing operations based on the current Procedure.
SliceExtension
Extension trait for byte slices to convert them into hexadecimal strings.

Functions§

add_thousands_separator
Serde Serializer: Formats usize as a string with separators (e.g., “1.234 bytes”). Highly efficient: Writes directly to the serializer’s buffer without temporary String allocations on the heap.
clear_terminal_screen
Clear (wipe) the terminal screen
get_all_files
Collects all files within the specified directory into a single Vector.
get_path
Get path from arguments or from default (current directory).
get_thousands_separator
Returns the preferred thousands separator character with lazy initialization.
my_print
Prints the provided byte buffer to standard output as a UTF-8 string.
open_file
Opens a file in read-only mode.
split_and_insert
High-performance string formatter returning a custom Result.
write_xlsx
Writes a collection of serializable data to an XLSX file.

Type Aliases§

FIFResult
Result type to simplify function signatures.