You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by an...@wipro.com on 2004/05/15 11:58:28 UTC

File deletion from Flowscript

Hi,



We are trying to delete a file from the flowscript.



var file = new Packages.java.io.File("foo");





var b = file.delete();



We get the foll. error: -



missing name after . operator.



Could anybody point out what could be wrong in the above code.





Regards

Anand





Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Re: File deletion from Flowscript

Posted by Thomas <bi...@gmx.de>.
"delete" is a reserved keyword. Try file["delete"]() instead.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org