[−][src]Crate yadf
This a binary crate. You can use it as a library, but I wouldn't recommend it.
A collection of functions and structs to find duplicate files.
Example :
Find, display, and report, all the duplicate files at the given path :
let counter = yadf::Config::builder() .paths(&["path/to/somewhere", "another/path"]) // required .minimum_file_size(64) // optional .maximum_file_size(1024 * 8) // optional .regex(None) // optional .glob(None) // optional .build() .scan::<yadf::HighwayHasher>(); println!("{}", counter.duplicates().display::<yadf::Fdupes>()); eprintln!("{}", yadf::Report::from(&counter));
Re-exports
pub use globset; |
pub use regex; |
Macros
newtype_impl_hasher | |
newtype_impl_hasher_and_write | |
newtype_impl_write |
Structs
Config | Search configuration |
ConfigBuilder | Builder for |
DirEntry | Serialization wrapper for |
Duplicates | A view which only provides access to duplicate entries |
Fdupes | Display marker. |
HighwayHasher | Hasher struct implementing Hasher, Default and Write |
Machine | Display marker. |
Report | Extract informations from a |
SeaHasher | Hasher struct implementing Hasher, Default and Write |
TreeBag | Counter structure. |
XxHasher | Hasher struct implementing Hasher, Default and Write |
Traits
Hasher | Meta trait for the Hasher, Default and Write traits |