From 45569417320f58e02fc1f2b5afefea0b744344e9 Mon Sep 17 00:00:00 2001 From: sergey-shandar Date: Tue, 12 Mar 2024 06:32:15 -0700 Subject: [PATCH] get-dir --- blockset-lib/src/app/mod.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/blockset-lib/src/app/mod.rs b/blockset-lib/src/app/mod.rs index 1b8a8f39..722a705b 100644 --- a/blockset-lib/src/app/mod.rs +++ b/blockset-lib/src/app/mod.rs @@ -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")), } @@ -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/");