dochy_fs 0.10.1

A file system which composes chlonological diff files efficiently.
1
2
3
4
5
6
7
8
use std::path::Path;
use crate::error::FsResult;
use crate::imp::common::path::hash_dir_path::hash_dir_path;

///we can safely remove hash dirs.
pub fn remove_hash_dir<P : AsRef<Path>>(proj_dir : P, hash : u128) -> FsResult<()>{
    Ok(std::fs::remove_dir_all(hash_dir_path(proj_dir, hash))?)
}