Page 1 of 1

Correct behaviour when finishing multiple torrents

Posted: Wed Mar 10, 2010 10:21 pm
by dusted
Just found a weird behaviour when downloading multiple torrents which all had the same base directory, like this:

TorrentA:
part-of-a-pack/1.file
part-of-a-pack/2.file
part-of-a-pack/3.file

TorrentB:
part-of-a-pack/4.file
part-of-a-pack/5.file
part-of-a-pack/6.file

TorrentA finished before TorrentB, so when moving the files, it just moved the whole "part-of-a-pack" directory to the completed directory. Breaking the downloading of TorrentB.
The correct behaviour would be to create the "part-of-a-pack" directory in the completed dir, then move the files, then check if the dir was emptied, and if it was, remove it.

Re: Correct behaviour when finishing multiple torrents

Posted: Thu Mar 11, 2010 9:09 am
by johnnyg
Unfortunately this is a known bug in libtorrent and hasn't been fixed yet.

Re: Correct behaviour when finishing multiple torrents

Posted: Thu Mar 11, 2010 10:59 am
by dusted
I see, sorry about the noise then :) feel free to delete this post.