
FileCopier |
org.resurgence.actor.FileCopier |
This actor copies a file with path name into a directory that is given
via a port or as a parameter.
If this directory does not exist, it is created.
The user can decide if an existing file with the same name is
overwritten.
The file may also be moved instead of copied.
The corresponding new file with path name is given out.
Author(s): Wibke Sudholt, University and ETH Zurich, November 2004
Version:$Id: FileCopier.java,v 1.2 2005/03/18 18:16:58 sudholt Exp $
oldFile
The input port, which contains the old file path and name.
newFile
The output port, which contains the new file path and name.
directory
The port or parameter, which is a string with the directory
name.
overwrite
The boolean parameter, which decides if existing files are
overwritten.
move
The boolean parameter, which decides if the files are moved
instead of copied.