Great Thanx. I am using 1.5alpha anyway so I'll checkout the dirset type.
-----Original Message----- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 4:56 PM To: Ant Users List Subject: RE: Deleting files that are X days old --- Mike Lecza <[EMAIL PROTECTED]> wrote: > This script works great but now I want to delete entire directories. Is > there a wat to check the date on a subdirectory then delete the entire > thing if it is old? I'm glad it's working for you (although I hope you've made it a bit more robust and added some error-checking :) Just pass it a directory name instead of a set of files -- if <delete> is given a directory, it'll 'rm -rf *' it. (Be careful! :) If you want to pass it a set of directories, 1.5alpha has a new <dirset> datatype. Also, since the attribute name is different ('file' vs. 'dir'), you'll need to add a check for whether it's a directory that's being deleted. Diane ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
