ouais
This commit is contained in:
parent
cf26ffedb1
commit
d154536f6e
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ pub fn restore(options: RestoreOptions) -> Result<()> {
|
||||||
Ok(i) if i < files.len() => {
|
Ok(i) if i < files.len() => {
|
||||||
let info = files.get(i).unwrap();
|
let info = files.get(i).unwrap();
|
||||||
eprintln!("moving {:?} to {:?}", &info.deleted_path, &info.path);
|
eprintln!("moving {:?} to {:?}", &info.deleted_path, &info.path);
|
||||||
|
fs::remove_file(&info.info_path)?;
|
||||||
fs::rename(&info.deleted_path, &info.path)?;
|
fs::rename(&info.deleted_path, &info.path)?;
|
||||||
}
|
}
|
||||||
_ => eprintln!("Invalid number."),
|
_ => eprintln!("Invalid number."),
|
||||||
|
|
Loading…
Reference in a new issue