mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
Do not attempt to move a torrents storage if the destination path does
not exist
This commit is contained in:
parent
131af5a50a
commit
0b609bf4ad
1 changed files with 3 additions and 0 deletions
|
@ -740,6 +740,9 @@ class Torrent:
|
|||
|
||||
def move_storage(self, dest):
|
||||
"""Move a torrent's storage location"""
|
||||
if not os.path.exists(dest):
|
||||
log.error("Could not move storage for torrent %s since %s does not exist!", self.torrent_id, dest)
|
||||
return False
|
||||
try:
|
||||
self.handle.move_storage(dest.encode("utf8"))
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue