Do not try to delete padding files as they dont exist
This commit is contained in:
parent
1409dffb8f
commit
99bf295028
1 changed files with 3 additions and 0 deletions
|
|
@ -1473,6 +1473,9 @@ pub(crate) struct ResolveMagnetResult {
|
|||
fn remove_files_and_dirs(infos: &FileInfos, files: &dyn TorrentStorage) {
|
||||
let mut all_dirs = HashSet::new();
|
||||
for (id, fi) in infos.iter().enumerate() {
|
||||
if fi.attrs.padding {
|
||||
continue;
|
||||
}
|
||||
let mut fname = &*fi.relative_filename;
|
||||
if let Err(e) = files.remove_file(id, fname) {
|
||||
warn!(?fi.relative_filename, error=?e, "could not delete file");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue