-
Notifications
You must be signed in to change notification settings - Fork 141
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
Empty folder left after removing torrent (delete data) #35
Comments
I think it should already try to delete the folder (recursively): flood/server/services/clientGatewayService.js Lines 106 to 107 in 916f2e5
Maybe filesToDelete doesn't contain the folder, but only files inside it..?I guess one would have to check what is returned by d.directory_base and fileListMethodCallConfig.methodCalls , to understand how a torrent with a file differs from a torrent with a file inside a folder.
|
Thanks for the pointers. Didn't see those somehow... |
In fact, since any fix I would implement would very probably end up being for me only, I'll skip the dev environment setup & learn Node parts, and just implement what I need in a shell script. |
Type: Bug Report
Your Environment
ee0257a557a7bedf4110dcbb50bda2207494b81d
Summary
When removing (and deleting data) a torrent that has 1+ file(s) inside a folder, the folder is left empty. It should be deleted.
Possible Solution
When deleting data, Flood should check if the torrent contains files inside a folder, and if so, check if that folder is empty, after deleting all files, and if so, it should deleted the folder too.
Steps to Reproduce
Delete data
The text was updated successfully, but these errors were encountered: