RE: Check if directory is empty or not

2007-04-26 Thread Matt Benson
, this would not work. > > -Rob Anderson > > > > -Original Message----- > > From: Bill Rich [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 20, 2007 11:36 PM > > To: Ant Users List > > Subject: Re: Check if directory is empty or not >

Re: Check if directory is empty or not

2007-04-26 Thread Charles Paulet
todir="${directory.target.temp}" includeEmptyDirs="false"/> file="${directory.target.temp}/my-dir-to-check"/> the src directory is not copied if it is empty ! Anderson, Rob (Global Trade) wrote: I have a build.xml that runs a custom task to import documents into a document managemen

RE: Check if directory is empty or not

2007-04-25 Thread Anderson, Rob (Global Trade)
t Users List > Subject: Re: Check if directory is empty or not > > A little while ago Jan Materne suggested the following for > another question about files in a directory. > > name="dir" value="dir"/> > > > > > > >

Re: Check if directory is empty or not

2007-04-20 Thread Bill Rich
A little while ago Jan Materne suggested the following for another question about files in a directory. Can you use something similar, maybe with a * or **/*, and check if the length of the file list is 0? HTH Bill Anderson, Rob (Global Trade) wrote: I have a build.xml that