Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 77238 invoked from network); 7 Jul 2004 18:29:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jul 2004 18:29:15 -0000 Received: (qmail 3480 invoked by uid 500); 7 Jul 2004 18:29:09 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 3389 invoked by uid 500); 7 Jul 2004 18:29:08 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 3373 invoked by uid 99); 7 Jul 2004 18:29:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [212.85.125.162] (HELO v07274.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 07 Jul 2004 11:29:05 -0700 Received: from gprs2.idea.pl (HELO ?127.0.0.1?) (lgawron.mobilebox@home@194.9.223.26) by matrix15.home.net.pl with SMTP; 7 Jul 2004 18:28:51 -0000 Message-ID: <40EC40DB.6010901@mobilebox.pl> Date: Wed, 07 Jul 2004 20:28:43 +0200 From: Leszek Gawron User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: [Flowscript] Delete files References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Olivier Billard wrote: > Hi cocooners ! > > I'm trying to delete a java.io.File flowscript, but delete is a reserved > word in javascript, and I get the following error : > > "SyntaxError: missing name after . operator" > > calling getPath() works well, so my java.io.File is correct. > > Is there "yet another way" to delete files in flowscript ? > > Thanks ! file["delete"](); should do the trick. -- Leszek Gawron lgawron@mobilebox.pl Project Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org