Skip to main content

Copy Files

Description

Copy Files duplicates one or more files or folders from a source location to a destination location. Use this process entry when your process needs to stage files, create backups, or distribute output — for example, copying input files to a working directory before processing, duplicating completed reports to a shared folder, or archiving source files before transformation. It supports wildcard filtering and can add copied filenames to the result list for tracking.

Configurations

Field NameDescription
Process Entry nameSpecify a unique name for the process entry, on the workspace area. A process entry can be placed on the canvas several times; and each instance of the entry must have a unique name.
Source EnvironmentIndicates the file system or specific cluster on which the item you want to input can be found. Options are Local and <Static>.

- Local: Specifies that the item specified in the File/Folder field is in a file system that is local to Process Studio.

- <Static>: Specifies that the item specified in the File/Folder field should use the path name in that field, exactly. Use this if you already know a file path and you simply want to copy and paste it into the window.

Source File/Folder* *The file or directory to copy from. If you choose an option other than <Static> in the Source Environment field, click the button in the field to view the Open File window.
WildcardDefines the files that are copied in regular expression terms (instead of static file names), for instance: .*.txt would be any file with a .txt extension.
Destination EnvironmentIndicates the file system or specific cluster where you want the file to be placed. Options are Local and <Static>.

Local: Specifies that the item specified in the File/Folder field is in a file system that is local to Process Studio.

<Static>: Specifies that the item specified in the File/Folder field should use the path name in that field, exactly. Use this if you already know a file path and you simply want to copy and paste it into the window.

Destination FileIndicates the name of the destination environment. If you choose an option other than <Static> in the Destination Environment field, click the button in the field to view the Open File window.
Setting tab:
Include SubfoldersIf selected, all subdirectories within the chosen directory will be copied as well
Destination is a fileDetermines whether the destination is a file or a directory
Copy empty foldersIf selected, will copy all directories, even if they are empty the Include Subfolders option must be selected for this option to be valid. (Wildcard MUST be blank for this to work)
Create destination folderIf selected, will create the specified destination directory if it does not currently exist
Replace existing filesIf selected, duplicate files in the destination directory will be overwritten
Remove source filesIf selected, removes the source files after copy (a move procedure)
Copy previous results to argumentsCopies the previous results to arguments.
Add files to result files nameAny files that are copied will appear as a result from this step; shows a list of files that were copied in this step
Open File Tab:
Open from FolderIndicates the path and name of the directory you want to browse. This directory becomes the active directory.
Up One LevelDisplays the parent directory of the active directory shown in the Open from Folder field.
DeleteDeletes a folder from the active directory.
Create FolderCreates a new folder in the active directory.
NameDisplays the active directory, which is the one that is listed in the Open from Folder field.
FilterApplies a filter to the results displayed in the active directory contents.