[][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 and display 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::<highway::HighwayHasher>();
println!("{}", counter.duplicates().display::<yadf::Fdupes>());

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 Config instances.

Duplicates

A view which only provides access to duplicate entries

Fdupes

Display marker.

Machine

Display marker.

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