ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul.ar...@sadalbari.com
Subject selecting empty directories
Date Wed, 20 Dec 2006 13:05:24 GMT
hi all,

how do you select empty directories/folders? (a directory which has no files or
folders in it?)

i don't want to exclude them, i want to list and warn about them (so <copy
includeEmptyDirs="no"> is no help).

i've tried dozens of options, faq, etc. and many convoluted attempts later, i'm
left looking at what seems the most logical answer, but doesn't work:

<dirset dir="." id="empty.dirs">
  <size value="0" when="equal" />
</dirset>

since the size selector only applies to files. any advice?
thanks,

- p


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message