Page 1 of 1

Rename folder and multiple files in Torrent result in duplication

Posted: Sun May 18, 2014 8:01 am
by magi44ken
Hi,

I find a major bug if you rename the folder and files in torrent. I'm using Windows 8.1 with the latest version 3.1.9.2

1. If you rename the folder in a torrent with multiple files, it will create two folders, one with old name and another with new name.

2. If you uncheck a file not to download, it will start create the file but it does not download it. It shouldn't have create the file in the first place, specially if the file is big like 3GB or something.

3. I notice if you download multiple small files like text or nfo files, it will say it is completed downloaded but when I look at from a file manager it is not completed. But then after one or two mintues, it will show as complete from file manager. It not in sync for some reason between file manager and qbittorrent.

Example:

Spiderman 10 2019 (folder)
Spiderman10 2019.srt
Spiderman10 2019.txt
Spiderman10 2019.mov

If I rename everything from "Spiderman 10 2019" to "Spiderman" and only check .srt and .txt, this is how it looks like in file manager:

Spiderman 10 2019 (folder)

Spiderman (folder)
Spiderman.srt
Spiderman.txt
Spiderman.mov

In the qBittorrent, it will show "spiderman 10 2019" instead of "Spiderman". Notice there are two folders created.

Kenneth

Re: Rename folder and multiple files in Torrent result in duplication

Posted: Sun May 18, 2014 11:28 am
by ciaobaby
1: the libtorrent library not qBitTorrent handles the filing systems.

And it leaves behind an empty folder because, by necessity the "rename" is a "Move" not an insitu rename.

2: libtorrent library again, and it is due to "Cross file pieces", it has been explained a few  times on the forum

http://qbforums.shiki.hu/index.php/topi ... ml#msg2158
http://qbforums.shiki.hu/index.php/topic,2572.0.html

3: libtorrent again, and yes there will always be a 'delay' between all pieces having been 'fetched' and them being 'flushed to disc', rebuilt, and reported to the file system.

Re: Rename folder and multiple files in Torrent result in duplication

Posted: Sun May 18, 2014 9:12 pm
by magi44ken
Thanks for the links. I didn't know qBittorrent is the front end for libtorrent. It would be nice if both team an work together to fix it. I'll check if it is already submitted in their libtorrent bug report.

Edit: Submitted a bug report to libtorrent.

Re: Rename folder and multiple files in Torrent result in duplication

Posted: Sun May 25, 2014 11:47 am
by ciaobaby
Okay, just finished a few days of  testing for this behaviour on Linux, 

This duplicated folder behaviour is only triggered when renaming folders, if and when the double extension (.!qB) is appended to incomplete files.