-
-
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
Bug: add a --delete-empty-dirs flag on the move command instead of deleting empty dirs automatically #1854
Comments
@ishuah is empty folder removal triggered after everything is finished or does folders get removed immediately. There could be an easy solution without the flag if those folders are removed after everything is moved since in that case we could recreate them at the end of script. |
Directory removal is triggered after transfer is finished. |
Is it after all transfers are finished or per transfer eg if i do and its transferring once ./movie/Title1 is transferred ( but series are still in progress ), will rclone immediately delete /storage/local/movies ... or that happens after all transfers are finished and then cleanup is preformed at the end. |
Now I understand your question. |
i agree that it would be nicer if this option was itself a flag on the move command (disabled by default), e.g. |
@ishuah a flag on just the move command is a good idea I think and saves the proliferation of global flags. |
Great! I'll put together a PR. |
Please find a beta version with a fix here: https://beta.rclone.org/v1.38-188-gaab8051f/ (Uploaded in 15-30 minutes) |
Latest rclone v1.38-181 include removal of empty folders once rclone move is finished, however that is causing problems if other apps expect those paths.
I use the following setup:
Sonarr is pointing to /storage/local/series
Radarr is pointing to /storage/local/movies
Rclone is moving from /storage/local remote:
Once rclone is finished it will delete all empty folder so in this case /storage/local
With previous version, I used script that would remove empty folders under ./local/movies & series.
It would be great if new flag was added that would skip removal of empty folders.
The text was updated successfully, but these errors were encountered: