use delete_files
This commit is contained in:
1 parent
22b32364b6
commit
0d3c0c4077
1 file changed
+3
-2
@@ -210,8 +210,9 @@ class rTorrent(Downloader):
|
|||||||
if torrent is None:
|
if torrent is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
for file_item in torrent.get_files():
|
if delete_files:
|
||||||
os.unlink(os.path.join(torrent.directory, file_item.path))
|
for file_item in torrent.get_files(): # will only delete files, not dir/sub-dir
|
||||||
|
os.unlink(os.path.join(torrent.directory, file_item.path))
|
||||||
|
|
||||||
torrent.erase() # just removes the torrent, doesn't delete data
|
torrent.erase() # just removes the torrent, doesn't delete data
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user