From 5dcf91d4f5a5df1293d511836c84a81abae810da Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 29 Oct 2017 18:30:32 -0700 Subject: drive progress (still WIP) --- src/bin/geniza-drive.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bin') diff --git a/src/bin/geniza-drive.rs b/src/bin/geniza-drive.rs index 8e236f7..dae8294 100644 --- a/src/bin/geniza-drive.rs +++ b/src/bin/geniza-drive.rs @@ -51,10 +51,15 @@ fn run() -> Result<()> { let dir = Path::new(matches.value_of("dat-dir").unwrap()); match matches.subcommand() { ("ls", Some(_subm)) => { + let mut drive = DatDrive::open(dir, false)?; + for entry in drive.read_dir_recursive("/") { + let entry = entry?; + println!("{}", entry.path.display()); + } } ("log", Some(_subm)) => { let mut drive = DatDrive::open(dir, false)?; - for entry in drive.history(1) { + for entry in drive.history(0) { let entry = entry?; if let Some(stat) = entry.stat { if stat.get_blocks() == 0 { -- cgit v1.2.3