You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alexey Solofnenko <A....@mdl.com> on 2003/03/17 23:32:09 UTC

How to sync two folders and preserve empty subfolders, but delete obsolete ones?

<copy> with <delete> works fine except for empty directories. I am able to
delete all empty directories or preserve all of them regardless whether they
exist in original folder. How can I delete only folders that do not exist in
the original folder?

- Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)