qbittorrent / qBittorrent

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

Remove subfolder from existing torrents #10238

Open 5p4r74cu5 opened 5 years ago

5p4r74cu5 commented 5 years ago

Please provide the following information

qBittorrent version and Operating System

4.1.5 Win10 64bit

What is the problem

Requesting an option to remove the subfolder for a torrent, currently removing and opening the torrent after manually changing file subfolder in windows explorer is the only method to do so.

glassez commented 5 years ago

Isn't there such an option?

5p4r74cu5 commented 5 years ago

Unless I'm mistaken... but probably wasn't clear enough. I refer to an option to disable subfolders in an existing torrent, one that has already been downloaded for example. The operation would relocate the torrent data accordingly and delete the existing subfolder. This is as opposed to the existing option to disable the default create subfolder tickbox via preferences...

glassez commented 5 years ago

Yes, you can remove torrent root folder only when you adding it.

Vagmer commented 5 years ago

Yeah, so he's asking for an option to do this for an existing torrent as well. I second this, as I have also had need for this in the past, and this lack of ability currently makes the "Set location..." relocation feature incomplete, as you can't always precisely control the actual location of your downloaded files as you wish, as basic an ability as that is. The "hardcoded" parent folder is quite a clumsy affair, as is the workaround in this case of removing and re-adding the torrent to the client, which also loses all its stats.

Ryrynz commented 3 years ago

Have needed this often, would very much like to see it implemented. A simple right click and 'remove folder' option. The benefit being single file torrents can be easily seeded while also seeding a full pack torrent with a minimum of fuss.

5p4r74cu5 commented 11 months ago

I would like to update my original feature suggestion: I think that the torrent options window that can be opened via the right clicking an existing torrent would likely be a good place for adding or removing the subfolder after a torrent has already been added.

AmazingSlab commented 2 months ago

I have found that renaming the subfolder to . in the Content tab functions as a workaround, and will move files to the parent directory and remove the subfolder. Similarly, renaming a file to subfolder/filename.ext will move it to a new subfolder.

ThatProgrammerr commented 3 days ago

I have found that renaming the subfolder to . in the Content tab functions as a workaround, and will move files to the parent directory and remove the subfolder. Similarly, renaming a file to subfolder/filename.ext will move it to a new subfolder.

This is honestly a good enough feature, even if not intended. I would be fine with this, instead of a whole new option during rename, but sucks it's not an obvious solution to anyone not googling around.

5p4r74cu5 commented 2 days ago

Not a bad work around, does it work for windows users as well? I'm on linux myself, so not personally relevant.

Thinking about it again, perhaps the most straightforward approach to adding this functionality would be to just add it to the existing Torrent options... option in the torrent right click menu, as a drop-down box just like it appears in the add-new-torrent dialogue.

ThatProgrammerr commented 2 days ago

Can confirm it works for Windows, at least via the Web UI. I can't speak for the actual windows client itself.