Correct behaviour when finishing multiple torrents

Suggestions and discussion of future versions
Post Reply
dusted
New User
New User
Posts: 4
Joined: Thu Oct 04, 2007 4:59 pm

Correct behaviour when finishing multiple torrents

Post 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.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Correct behaviour when finishing multiple torrents

Post by johnnyg »

Unfortunately this is a known bug in libtorrent and hasn't been fixed yet.
dusted
New User
New User
Posts: 4
Joined: Thu Oct 04, 2007 4:59 pm

Re: Correct behaviour when finishing multiple torrents

Post by dusted »

I see, sorry about the noise then :) feel free to delete this post.
Post Reply