mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
remove dir even if it has empty dirs left over
This commit is contained in:
parent
c598637824
commit
31d21bb161
@ -317,7 +317,7 @@ class Manager:
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass # No file just means it wasn't downloaded, we can continue
|
pass # No file just means it wasn't downloaded, we can continue
|
||||||
#clean up empty dir
|
#clean up empty dir
|
||||||
os.rmdir(os.path.dirname(os.path.join(temp.save_dir, filename)))
|
os.removedirs(os.path.dirname(os.path.join(temp.save_dir, filename)))
|
||||||
|
|
||||||
# A function to try and reload a torrent from a previous session. This is
|
# A function to try and reload a torrent from a previous session. This is
|
||||||
# used in the event that Deluge crashes and a blank state is loaded.
|
# used in the event that Deluge crashes and a blank state is loaded.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user