Re: Check if a directory is empty

2007-10-09 Thread nissea
OK, Thank you so much! David Weintraub wrote: > > Hmmm... > > You could create a PATH ID, then convert that over to a property, then > check that the property is not empty. The following build.xml has been > tested and checks for the presents of files in that directory. > However, it will re

Re: Check if a directory is empty

2007-10-09 Thread David Weintraub
Hmmm... You could create a PATH ID, then convert that over to a property, then check that the property is not empty. The following build.xml has been tested and checks for the presents of files in that directory. However, it will report a directory as empty if it contains just empty directories: