ajkis / scripts

Ajki's scripts & guides
https://ajkis.github.io/scripts/
324 stars 91 forks source link

Script Leaves Behind Folders #51

Closed darrylmorley closed 6 years ago

darrylmorley commented 6 years ago

Hi,

I'm using your rclone-upload script which does the job well, apart from leaving behind a ton of empty folders.

Am I doing something wrong or is there something I can edit to ensure the folders are removed please?

Thanks

ajkis commented 6 years ago

Its actually rclone not removing empty folders but you could add to script after rclone line find /path/movies/** -type d -empty -mmin +10 -delete

darrylmorley commented 6 years ago

Thanks

On Fri, 13 Apr 2018, 14:26 Ajki, notifications@github.com wrote:

Its actually rclone not removing empty folders but you could add to script after rclone line find /path/movies/** -type d -empty -mmin +10 -delete

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ajkis/scripts/issues/51#issuecomment-381134611, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdfeUbBsznlv9VF1B0qsnjQIBZybPiFks5toKeNgaJpZM4TD4YR .

if1mad commented 6 years ago

@darrylmorley https://rclone.org/commands/rclone_rmdirs/

Stick that on the end of the upload command