https://bugzilla.samba.org/show_bug.cgi?id=3845


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Add --remove-source-files   |Make --remove-source-files
                   |                            |remove directories too




------- Comment #4 from [EMAIL PROTECTED]  2007-02-21 19:13 MST -------
A --remove-source-files option was added in 2.6.9, but it does not remove
source directories, and I would like it to remove them so that "rsync
--remove-source-files" can be used as a mv replacement.  Specifically, I would
like the sender to do the following:

(1) Remove each empty source directory as soon as the generator processes it. 
(For this to work, the generator would need to send MSG_SUCCESS after
processing a directory with no contents in the file list; maybe the
--prune-empty-dirs code could be reused to flag such directories.)

(2) After removing each source file, check whether the parent directory is
empty and in the file list.  If so, remove it and recursively consider /its/
parent for removal.

I would be satisfied if a separate option or repetition of
--remove-source-files activated this behavior.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to