PDA

View Full Version : Synchronize folders


maks
06-07-2006, 10:24 AM
There is an option in Copy Files Step "Delete destination files and folders that do not exists in source (synchronize)". It works exactly as it says but it ignores the files/folders that are listed in Exclude list.
Is there a way to synchronize the folders that would use Exclude files also? For example I have files a.txt, b.txt, c.txt in the source folder and the same files in the destination. I add c.txt to Exclude list. What I expect is c.txt to be deleted from the destination but it's not.
I understand that I can delete entire destination folder first and then run copy step but I'm looking for a way to synchronize the folders without copying all the files.

kinook
06-07-2006, 11:17 AM
It is by design that files matching the exclude masks are excluded from the copy/sync. If you start over (delete the destination) one time, when building again, any files matching the exclude list will excluded from being copied. Or if you remove c.txt from the exclude list and instead remove c.txt from the source path, it will also be deleted from the destination when the copy/sync is performed.

maks
06-07-2006, 11:21 AM
Thanks for reply