FileCopy
org.geon.FileCopy

This actor copies a source file to a destination file and outputs the destination file URL. The source and destination file paths can be accepted either through a port or a parameter. If the append attribute has value true, then the file will be appended to. If it has value false, then if the file exists, the user will be queried for permission to overwrite, and if granted, the file will be overwritten. If the confirmOverwrite parameter has value false, then this actor will overwrite the specified file if it exists without asking. If true (the default), then if the file exists, then this actor will ask for confirmation before overwriting.

Author(s): Efrat Jaeger
Version:$Id: FileCopy.java,v 1.8 2006/05/18 22:42:42 mangal Exp $


sourceFile
Source file.

destinationFile
Destination file.

outputFile
Output destination file URL.



sourceFileParam
Source file name or URL. This is a string with any form accepted by FileParameter.

destFileParam
Destination file name or URL. This is a string with any form accepted by FileParameter.

append
If true, then append to the specified file. If false (the default), then overwrite any preexisting file after asking the user for permission.

confirmOverwrite
If false, then overwrite the specified file if it exists without asking. If true (the default), then if the file exists, ask for confirmation before overwriting.