rsync
rsync copied to clipboard
Feature Request: Make an option to delete source directories after successful transfer
Plenty of people on Stackexchange (SuperUser, Unix&Linux) and other plattforms have wondered, why their directories have remained untouched after specifying the --remove-source-files option.
Whatever has been the reason to not include directories in the removal in the first place, I kindly want to propose to add a command line option to include directories in the removal of source files.
I want to kindly disagree,
I mean an command line option that just leaves behind an empty source directory (given that all files (recursively) within the directory have successfully been transferred).
To provide some abstract example: rsync would (in most cases) then behave like running find /path/to/source/directory -depth -empty -delete on the source directory, leaving nothing but non-transferable / non-transferred files.