Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 80381 invoked from network); 18 Feb 2005 14:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Feb 2005 14:41:28 -0000 Received: (qmail 59010 invoked by uid 500); 18 Feb 2005 14:41:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58959 invoked by uid 500); 18 Feb 2005 14:41:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 58944 invoked by uid 99); 18 Feb 2005 14:41:21 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web52901.mail.yahoo.com (HELO web52901.mail.yahoo.com) (206.190.39.178) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 18 Feb 2005 06:41:19 -0800 Received: (qmail 28304 invoked by uid 60001); 18 Feb 2005 14:41:17 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=aDibEd3Nl4GF6xDnOlaluw5UIftVrTIV68WQo6rDzxKOH0seUN7whnXMZ/oELnn9dkoUZe29dC4dnLMNPfvnNluOKjlarWCI6+P7BlG7QOJWcj1r6MHMS7wOafY5apPRa7rOEssFPfKDdWNQtHL/ygvpUJCNtjIGMXxJWzIpoRQ= ; Message-ID: <20050218144117.28302.qmail@web52901.mail.yahoo.com> Received: from [212.95.183.130] by web52901.mail.yahoo.com via HTTP; Fri, 18 Feb 2005 06:41:17 PST Date: Fri, 18 Feb 2005 06:41:17 -0800 (PST) From: Ivan Ivanov Subject: RE: handy way to check if a dir is empty or not To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --- "Michael Wang (IT)" wrote: > thanks for the reply, howover, is this ANT script? No, this is not an Ant script but this snippet can be used in a : $${empty.empty} = ${empty.empty} $${notempty.empty} = ${notempty.empty} HTH Ivan > > -----Original Message----- > From: Mark Benussi [mailto:mark_benussi@hotmail.com] > Sent: Friday, February 18, 2005 9:28 AM > To: user@ant.apache.org > Subject: RE: handy way to check if a dir is empty or > not > > > if(file.isDirectory() && (file.list()).length == 0) > { > // Directory is empty > } > > ----Original Message Follows---- > From: "Michael Wang (IT)" > > Reply-To: "Ant Users List" > To: "Ant Users List" > Subject: handy way to check if a dir is empty or not > Date: Fri, 18 Feb 2005 09:17:28 -0500 > > is there a handy way to do this? thanks. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org