faet: single file process.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user