cleaning some code

This commit is contained in:
grimhilt
2023-06-12 01:30:39 +02:00
parent 05d17c296f
commit e405ce7f8f
5 changed files with 16 additions and 17 deletions

View File

@@ -132,16 +132,12 @@ fn add_node(path: &Path, node: &str) -> io::Result<()> {
let (dir, rest) = hash_obj(path.clone().to_str().unwrap());
dbg!(root.clone());
root.push(dir);
if !root.exists() {
todo!();
}
root.push(rest);
dbg!("create node");
dbg!(root.clone());
dbg!(node.clone());
let mut file = OpenOptions::new()
.read(true)
.write(true)