Changes between Initial Version and Version 1 of Ticket #2466, comment 3


Ignore:
Timestamp:
07/03/2014 01:50:07 AM (12 years ago)
Author:
Doadin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2466, comment 3

    initial v1  
    22"os.remove(filepath)"
    33It will fix this as it should first copy the torrent(line 340) which works, then removes the torrent from its original location? It seems like this is what it trys if there is an error with the operation but im guessing the operation is considered successful since the copy works but loops back from another spot causing the error shown in deluged-debug?
     4
     5Or maybe a easyer option would be to just use shutil.move(src, dst).
     6Which would be "shutil.move(filepath, copy_torrent_file)"  ? In place of line 340
     7Although shutil seems like a poor options as its not a fery nice module and it would be one more module to add.