Storages
This commit is contained in:
parent
609f9d92ae
commit
1b49257019
13 changed files with 499 additions and 230 deletions
|
|
@ -1092,10 +1092,9 @@ impl Session {
|
|||
warn!(error=?e, "error deleting torrent cleanly");
|
||||
}
|
||||
(Ok(Some(paused)), true) => {
|
||||
for file in paused.files.iter() {
|
||||
drop(file.take()?);
|
||||
if let Err(e) = std::fs::remove_file(&file.filename) {
|
||||
warn!(?file.filename, error=?e, "could not delete file");
|
||||
for (id, fi) in removed.info().file_infos.iter().enumerate() {
|
||||
if let Err(e) = paused.files.remove_file(id, &fi.filename) {
|
||||
warn!(?fi.filename, error=?e, "could not delete file");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue