Crate fclones

Crate fclones 

Source

Re-exports§

pub use config::DedupeConfig;
pub use config::GroupConfig;
pub use config::Priority;

Modules§

config
Main program configuration.
log
Logging and progress reporting.
progress
Fast, concurrent, lockless progress bars.
report
Output formatting.

Structs§

DedupeResult
Provides information about the number of deduplicated files and reclaimed disk space
DiskDevices
Finds disk devices by file paths
Error
Error reported by top-level fclones functions
FileGroup
A group of files that have something in common, e.g. same size or same hash
FileHash
FileId
Useful for identifying files in presence of hardlinks
FileInfo
FileLen
Represents length of data, in bytes. Provides more type safety and nicer formatting over using a raw u64.
FileSubGroup
A subgroup of identical files, typically smaller than a FileGroup. A subgroup is formed by files sharing the same path prefix, e.g. files on the same volume. In terms of file deduplication activities, a subgroup is an atomic entity - all files in a subgroup must be either dropped or kept.
PartitionedFileGroup
Path
Memory-efficient file path representation.
PathAndMetadata
Convenience struct for holding a path to a file and its metadata together

Enums§

DedupeOp
Defines what to do with redundant files

Functions§

dedupe
Generates a list of commands that will remove the redundant files in the groups provided by the groups iterator.
group_files
Groups identical files together by 128-bit hash of their contents. Depending on filtering settings, can find unique, duplicate, over- or under-replicated files.
log_script
Prints a script generated by dedupe to stdout.
run_script
Runs a deduplication script generated by dedupe.
sort_by_priority
Sort files so that files with highest priority (newest, most recently updated, recently accessed, etc) are sorted last. In cases when metadata of a file cannot be accessed, an error message is pushed in the result vector and such file is placed at the beginning of the list.
write_report
Writes the list of groups to a file or the standard output.