Struct dupcheck::FileHash
[−]
[src]
pub struct FileHash { /* fields omitted */ }
Keeps information about a file hash and the files with that hash.
Methods
impl FileHash
[src]
fn get_hash(&self) -> String
Returns the SHA-256 hash.
fn get_files(&self) -> &Vec<PathBuf>
Returns a reference to the files associated with this hash.
fn get_hash_and_files(&self) -> (String, &Vec<PathBuf>)
Returns both the hash and the files reference.
fn add_file(&mut self, file: PathBuf)
Adds a file path.
fn total_files(&self) -> usize
Returns the total number of files.