Hello Gregory, ant does not optimize the scanning of a directory based on selectors such as depth, on based on include patterns. Check whether adding this line
<include name="*"/> brings an optimization. Regards, Antoine <path id="myFiles"> <fileset dir="c:\myFiles" > <include name="*"/> <depth max="0"/> </fileset> </path> Lewis, Gregory wrote: > All- > I am trying to get a listing of the files and folders in a directory. > When I use the following target my machine appears to be searching > through for every file under the root folder. Is there a target or > switch that I could add that would search only the folder passed in? In > addition, how do I get the root folder to not show up in the list? > > <path id="myFiles"> > <fileset dir="c:\myFiles" > > <depth max="0"/> > </fileset> > </path> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]