ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Madunic" <>
Subject possible to recurse through directory to see if a file exists in a subdirectory
Date Thu, 12 Aug 2010 17:38:20 GMT
(Using ANT 1.8, WinXP)

I need to find out if a certain file with a standard naming convention exists in a subdirectory.
I would like to either have the directory path output to either the screen or a txt file.
Either is okay.

More details.

I'll have a root dir I'm working with


And beneath this are 900+ subdirs. Most have no spaces in their names but around 50 do.

files/1999 (example)

Now the 1999 dir has subdirs but they are all standard between all the subdirs of files.


Other examples
files/1996 (see 1995)/pub/ (does not contain any files)

The only part of the file name to change is all the chars before the p01.txt

Any help will be appreciated.


Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted
with this communication) is confidential, may be privileged and is intended only for the use
of the intended recipient. If you are not the intended recipient, any review, retransmission,
circulation, distribution, reproduction, conversion to hard copy, copying or other use of
this communication, information or material is strictly prohibited and may be illegal. If
you received this communication in error or if it is forwarded to you without the express
authorization of New Flyer, please notify us immediately by telephone or by return email and
permanently delete the communication, information and material from any computer, disk drive,
diskette or other storage device or media. Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message