Skip to content

Commit

Permalink
get-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Mar 12, 2024
1 parent a999ec4 commit 4556941
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions blockset-lib/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ pub fn run(io: &impl Io) -> io::Result<()> {
let w = &mut io.create(&path)?;
FileForest(io).restore(&ForestNodeId::new(NodeType::Root, &d), w, io)
}
"get-dir" => {
Ok(())
}
"info" => stdout.println(["size: ", calculate_total(io)?.to_string().as_str(), " B."]),
_ => Err(invalid_input("unknown command")),
}
Expand Down Expand Up @@ -393,14 +396,7 @@ mod test {
let mut a = io.args();
a.next().unwrap();
run(&mut io).unwrap();
// add_dir(&io, "a").unwrap();
io.stdout.to_stdout()
/*
assert_eq!(
result,
"add-dir: {\"b.txt\":12,\"d.txt\":0,\"e/f.txt\":0}\n"
);
*/
};
let a = f("a");
let b = f("a/");
Expand Down

0 comments on commit 4556941

Please sign in to comment.