faet: single file process.

This commit is contained in:
2025-12-22 05:23:04 +08:00
parent fe1f883b0d
commit 6943ac8ef5
7 changed files with 187 additions and 31 deletions
-8
View File
@@ -32,10 +32,6 @@ pub struct FileMeta {
}
impl FileMeta {
pub fn from_path(path: &Path) -> Result<Self> {
Self::from_path_with_callback(path, |_| {}, || {})
}
pub fn from_path_with_callback<F1, F2>(path: &Path, mut on_bytes_read: F1, mut on_iop: F2) -> Result<Self>
where
F1: FnMut(u64),
@@ -124,10 +120,6 @@ impl FileMeta {
}
}
pub fn calc_xxh128(path: &Path) -> Result<String> {
calc_xxh128_with_callback(path, |_| {}, || {})
}
pub fn calc_xxh128_with_callback<F1, F2>(path: &Path, mut on_bytes_read: F1, mut on_iop: F2) -> Result<String>
where
F1: FnMut(u64),