File Operation


The FileOperation action provides Copy, Move, and Delete operations for files in the Staging Browser area of the node.

Parameter descriptions

Parameter Description
Operation The options are:
  • Copy - copies a file to another directory.
  • Move - moves a file to another directory.
  • Delete - deletes a file.
File Names The options are:
  • Static - When you select the Copy or Move operation, the Source File and Destination File parameters become available. When you select the Delete operation the File parameter becomes available.
  • Dynamic - Input tab parameters becomes available to specify variables for the file name parameters.
Source File Available when Operation is Copy or Move and File Names is Static.
You can enter the file name or select Browse. You must enter the entire file path and file name. If you select Browse, the Staging Browser window appears.

The window lists files on node in the Staging Browser area. For this example, the files shown are transport map logging files. They are in the OracleLogs subdirectory.
Destination File Available when Operation is Copy or Move and File Names is Static.
You can enter the file name or select Browse. You must enter the entire file path and file name. If you select Browse, the Staging Browser window appears.

Consider the following:
  • You can type a destination directory and file name as follows:
    XYZ/XYZ/filename.ext
    /XYZ/XYZ/filename.ext
  • If you do not specify a file name, the trigger will fail.
  • For a Copy operation, if the file name already exists in the destination directory, the runtime will overwrite the existing file. This consideration applies to both Windows and Unix-based operating environments.
  • For a Move operation, if the file name already exists in the destination directory, the trigger might fail depending on the operating environment.
  • You can rename the source file that you are copying in the destination directory. For example, if you select the FAN file from a directory called XYZ, you can copy and rename the FAN file to a destination directory named XYZ2 as FOO.txt by typing /XYZ2/FOO.txt.
    When renaming a file, if the file name already exists in the destination directory, the runtime will overwrite the existing file.
  • You can specify a file but not a directory. The runtime copies (or moves) the file to the root of the Staging Browser area.
File Available when Operation is Delete and File Names is Static.

You can type the destination directory and file name, or select Browse. If you do not supply the complete path, the trigger will fail.

Input tab

When you select Dynamic for the File Names option, an Input tab appears.

Parameter Description
Source File The source file name when using the Copy or Move operations.
Destination File The destination file name when using the Copy or Move operations.
File The target file name when using the Delete operation.