Function dupcheck::duplicate_files
[−]
[src]
pub fn duplicate_files(files: &[PathBuf]) -> Result<Vec<FileHash>>
Checks files
for any duplicate files.
Returns the SHA-256 hashes, and the paths associated, of those found to be
duplicates. Each hash/files group is represented by a FileHash
.
Errors
Returns an error if any files
are not files or if there are I/O errors
while trying to read files.
Examples
use std::path::PathBuf; let files = vec![ PathBuf::from("foo.txt"), PathBuf::from("bar.txt") ]; let dup_result = dupcheck::duplicate_files(&files);