rsync-move has not delete directory.
jeffery9 opened this issue · comments
need to delete directory also.
You could change the alias to include a find
which can search and delete the empty directories. The first parameter of the is the source directory and the second the destination.
rsync -avz --progress -h --remove-source-files SOURCE DESTINATION && find SOURCE -type d -empty -delete
You can also redefine the alias in your .zshrc
file to include the -m
argument, as per [1].
Changing the alias at this point is not feasible, as it constitutes a breaking change.