Re: Check if a directory is empty

2007-10-09 Thread nissea
nyway. > > -- > David Weintraub > [EMAIL PROTECTED] > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED

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:

Check if a directory is empty

2007-10-09 Thread nissea
Hi I would like to check if a directory is empty and not include any files, and if it is empty I would like to do something and if it's not I would like to do another thing, quite like an If-statement? Does anyone know how to do this? regards Nils -- View this message in context: