dirhash_fast 0.1.1

A high-performance tool for hashing directory trees
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use dirhash_fast::file::dir::dirhash::hash_directory;
use std::path::Path;

fn main() {
    let path = std::env::args().nth(1).expect("Bitte ein Verzeichnis angeben");
    let dir_path = Path::new(&path);
    
    if dir_path.is_dir() {
        let hash = hash_directory(dir_path);
        println!("Hash für {}: {}\n", path, hash);
    } else {
        eprintln!("{} ist kein gültiges Verzeichnis", path);
    }
}