From d154536f6ec500fc5c6602564fb50c5b47f898f6 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Wed, 4 Mar 2020 00:19:31 -0600 Subject: [PATCH] ouais --- src/ops/restore.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ops/restore.rs b/src/ops/restore.rs index 0b90f9e..3dbd3aa 100644 --- a/src/ops/restore.rs +++ b/src/ops/restore.rs @@ -54,6 +54,7 @@ pub fn restore(options: RestoreOptions) -> Result<()> { Ok(i) if i < files.len() => { let info = files.get(i).unwrap(); eprintln!("moving {:?} to {:?}", &info.deleted_path, &info.path); + fs::remove_file(&info.info_path)?; fs::rename(&info.deleted_path, &info.path)?; } _ => eprintln!("Invalid number."),