dsc 0.1.3

dsc is a cli tool for finding and removing duplicate files on one or multiple file systems, while respecting your gitignore rules.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;

use crate::file_descriptor::FileDescriptor;
use rustc_hash::FxHashSet;

#[derive(Debug, Eq, PartialEq)]
pub struct FileDescriptorWithPaths {
    pub file_descriptor: FileDescriptor,
    pub paths: FxHashSet<PathBuf>,
}

#[derive(Debug, Eq, PartialEq)]
pub struct Duplicate {
    pub locations: Vec<FileDescriptorWithPaths>,
    pub file_size: u64,
}