qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.16k stars 3.84k forks source link

4.4.2 Linux Debian 11 - rename folder and files in payload entering slash / in name cause creating erroneous subfolders #16834

Open slrslr opened 2 years ago

slrslr commented 2 years ago

qBittorrent & operating system versions

qbt 4.4.2 (appimage) Linux Debian 11 qt 6.2.4 libtorrent 2.0.5.0

What is the problem?

Payload and on disk file/folder structure is broken when using slash in the payload folder/file names.

Steps to reproduce

Go downloading a torrent that in its payload structure has folder and several files in the folder. Automatic management of the torrent.; Sequential download Torrent download begin Now rename that folder by entering: a / b Rename also files: c / d.ext e / f.ext

i think that this slash (/) should cause qbt to damage the payload and on-disk folder structure.

video

SemiZhang commented 2 years ago

17049 Hope allowing remove the folder by renaming it to empty could be a solution for these folders that were created by mistake, instead of banning the character.