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."),