[Files] Copy/Move
This module copies or moves files from one location to another. Typically, you would first set up a job step that uses the [Files] Find module, then use its output as the input to this module. You can also forgo this and supply a file or folder name in FileSource.
The parameters are as follows:
| Parameter | I/O | Description |
|---|---|---|
| FileSource | In | This parameter takes a list of files (a FileList) that we want to copy or move from one location to another. It is usually linked to the output of a job step that uses the [Files] Find module. If it is not linked and entered manually, it must either be an existing file or a folder. If it is a file, that file will be copied/moved. If it is a folder, every file in the folder will be copied/moved, but not sub-folders. If a recursive copy/move is needed, then the output from the [Files] Find module must be used. |
| Action | In | Copy: Copies the source files to the destination. Move: Copies the source files to the destination and then deletes from the source folder the files that were copied. |
| DestinationFolder | In | The folder you want to copy or move the files to. |
| ReplicateSubfolders | In | True: Replicates all sub-folders during the copy process. False: Copies all files to the same folder level regardless of their location in sub-folders at the source, which can lead to name collisions. |
| IgnoreIfSameSize | In | True: Before each file is copied, if the destination file already exists, the sizes are compared, and if they are the same, no copy/move is performed. False: No size check is done before overwriting the destination file. |
| IgnoreIfSameTime | In | True: Before each file is copied, if the destination file already exists, the last-modified timestamps are compared, and if they are the same, no copy/move is performed. For timestamps, there can be some inaccuracy due to various factors, so if two files have timestamps that are within seven seconds of one another, they are considered equal. False: No timestamp check is done before overwriting the destination file. |
| LogOutputLevel | In | Minimal: Normal output to the log. Verbose: More detailed output is written to the log, suitable for debugging purposes. |
| FileList | Out | On a successful outcome, this will be a list of the files written to the destination folder. |