hfile 0.5.2

Hfile is a command-line interface (CLI) tool for generating hash values of files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub mod checksum;
pub mod cli;
pub mod command;
pub mod hash;
pub mod walkdir;

use std::{fs, path::Path};

#[must_use]
pub fn get_file_size(path: &Path) -> u64 {
    fs::metadata(path).map(|m| m.len()).unwrap_or(0)
}