-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow folders to be renamed to empty #17049
Comments
As a temporary workaround, you can rename the folder to a dot: |
Also I found an interesting behavior with slash in file name :
|
The problem is caused first of all because:
Nothing of this should be normally allowed to do. Only renaming the root folder/file with allowed characters. Or as an opposite you should add extended management of folders - add/remove subfolder, drag and drop. I have another problem. If you rename root folder while some files are locked by some process, you will get two root folders: one with new name and one with old name. It is impossible to fix this too. You can't rename both folders with same name and get the expected result (joining of folders), it will say that folder with that name already exists. I will try to find example. |
I noticed an interesting dependency, and I think this information will be useful. The slash \ and / make a big difference in this context. If you put \ in the name, it will end up in the file name and everything will break. If you specify /, it will normally change the file directory. Sorry for the English, I use machine translation, I would have translated it worse myself. |
qBittorrent & operating system versions
qBittorrent: 4.4.2 arm64
Operating system: Debian10 (WebUI)
What is the problem?
When a file is renamed with a slash symbol, a new folder is created and the part before the slash symbol is used as the folder name.
![image](https://user-images.githubusercontent.com/26916265/168832664-3010a25a-e1a3-414b-81b2-8bd052887756.png)
When a folder is renamed to a single slash, the folder is deleted from the file system, but a folder with an empty name remains in the qBittorrent UI. As following:
Apparently this is because the full file path contains multiple slashes.
So if the folder is allowed to be renamed to empty, the display in the UI can be removed along with the folder in the file system.
The text was updated successfully, but these errors were encountered: