Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qBittorrent changes the torrent's folder structure when giving the torrent's root folder a name with forbidden characters #20742

Open
pantanpan96 opened this issue Apr 21, 2024 · 1 comment

Comments

@pantanpan96
Copy link

qBittorrent & operating system versions

qBittorrent v4.6.4 x64
Windows 10 Home

What is the problem?

When changing the name of a torrent's root folder to one with forbidden characters (e.g. "/") with qBittorrent, instead of getting an error message that it's not allowed (like Windows Explorer does), and with no changes allowed to happen, the folder name changes to what the user input, minus everything after the forbidden character, and the original folder is placed within that folder. E.g. if the torrent is:

Songs Compilation
----Files

And the user tries to change the folder name to "2010/2015 - Songs Compilation", the result is:

2010
----Songs Compilation
--------Files

Thus changing the torrent's folder structure and potentially causing problems with torrent library organization or redownloading in the case of a deleted .torrent file or to recheck already downloaded files. Someone with basic computer knowledge knows about forbidden characters in file and folder names and wouldn't make this mistake, but for users more new to things like this it could potentially cause some confusion. Perhaps it would be possible to make it so that qBittorrent throws an error message if a user tries to do that, and nothing else happens?

Steps to reproduce

  1. Add a torrent with a folder (i.e. not one that comes as a loose file) to qBittorrent.
  2. Select it on qBittorrent, go to its Contents tab in the bottom, right click on the torrent's root folder, and rename to it something with a forbidden character.
  3. The result is that the folder's name is changed to the new name, minus everything after the forbidden character, and the torrent's previously root folder is placed within that folder, changing the torrent's original folder structure.

Additional context

No response

Log(s) & preferences file(s)

No response

@stalkerok
Copy link
Contributor

related #439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants