rsync icon indicating copy to clipboard operation
rsync copied to clipboard

Feature Request: Make an option to delete source directories after successful transfer

Open Semnodime opened this issue 3 years ago • 2 comments

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.

Semnodime avatar Jan 15 '22 19:01 Semnodime

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.

Semnodime avatar Jan 17 '22 08:01 Semnodime