Copy File

The Copy File activity copies files and directories to a new location.

Settings

Field Description
Create Non-Existing Directories When this field is set to true, the activity creates all directories in the specified path, if they do not already exist. If this boolean is set to false with non-existing one or more directories in the specified path, it throws an error.

Include Sub-Directories

When this field is set to true, the activity includes all sub-directories in the source directory, when the source to copy is a directory.

Input

The Input tab displays the following fields:

Field Description
fromFileName

The path and name of the file or directory to copy.

For example, to copy a directory, specify /opt/tibco/flogo/myDirectory. To copy all text files in a directory, specify /opt/tibco/flogo/myDirectory/*.txt.

toFileName

The destination for the copy operation.

For example: /opt/tibco/flogo/copyfilename

overwrite

Set this field to true to overwrite the existing file with the same name, if it exists. In case of directory, overwrite happens only if existing directory is empty.

If the specified file or directory exists and this field is set to false, then the activity throws an error.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User Guide for information on the Loop tab.