From user-return-54776-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Feb 15 15:32:33 2006 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 5821 invoked from network); 15 Feb 2006 15:32:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Feb 2006 15:32:32 -0000 Received: (qmail 47460 invoked by uid 500); 15 Feb 2006 15:32:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 47402 invoked by uid 500); 15 Feb 2006 15:32:20 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 47391 invoked by uid 99); 15 Feb 2006 15:32:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 07:32:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [81.2.197.38] (HELO ns.rvsnet.cz) (81.2.197.38) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 07:32:18 -0800 Received: from ns.rvsnet.cz (localhost.localdomain [127.0.0.1]) by ns.rvsnet.cz (8.13.3/8.13.3) with ESMTP id k1FFVoh5025224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Feb 2006 16:31:50 +0100 Received: (from apache@localhost) by ns.rvsnet.cz (8.13.3/8.13.3/Submit) id k1FFVo1c025215; Wed, 15 Feb 2006 16:31:50 +0100 X-Authentication-Warning: ns.rvsnet.cz: apache set sender to ondrej@svetlik.info using -f Received: from 62.209.196.10 (SquirrelMail authenticated user osvetlik) by mail.rvsnet.cz with HTTP; Wed, 15 Feb 2006 16:31:48 +0100 (CET) Message-ID: <53800.62.209.196.10.1140017508.squirrel@mail.rvsnet.cz> In-Reply-To: References: Date: Wed, 15 Feb 2006 16:31:48 +0100 (CET) Subject: Re: test for directory existence From: =?iso-8859-2?Q?Ond=F8ej_Sv=ECtl=EDk?= To: "Ant Users List" User-Agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.1.fc3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ns.rvsnet.cz X-Virus-Scanned: ClamAV 0.88/1289/Tue Feb 14 15:36:44 2006 on ns.rvsnet.cz X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Good Morning All- > > How do you test for the existence of a folder before del or mkdir > operation > Has something to with > Thanks! > > Martin Gainty > > (mobile) 603-438-5053 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > Hello, why do you want to check for it's existence? Both tasks ( and ) can handle non-existing respectively existing directories. See this example: It will successfully pass. The second won't do anything with the original content of the folder. Best regards Ondrej Svetlik --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org