Copy File
With the this node you can copy one or more files to another location.
It has the following configuration options:
- File to copy: here you can specify which file(s) should be copied. Select the pencil to open Expression Builder.
- To file or folder: here you can specify the file or folder to copy to. If you specify a folder, then the file will be copied with the original name into that folder. If you specify a file, then the file will be copied exactly to the specified name. Select the pencil to open Expression Builder.
- Create folders: if you select this checkbox, all folders that are needed to copy the file will be created. If you leave this checkbox unselected, copying the file will fail if you try to copy to a folder that does not exist (for example when you generate to folder on the fly).
- Overwrite existing file: if you select this checkbox, files that already exist will be overwritten. If you leave this checkbox unselected, existing files will not be overwritten and an error is displayed.
- Unique name mode: here you can control the naming of the copied file. Options:
- None: if you select this option, the same name as the input file will be used.
- Sequential: if you select this option, the specified name will be used if the default copied file does not exist. However, if it does exist, the system will try to add 1 to the file name, and check if that file exists. If it does not exist, the updated file name is used. If it does exist, 2 is tried, etc...
- Random: if you select this option, the specified name will be used if the default copied file does not exist. However, if it does exist, the system will try to add a random suffix to the file name, and check if that file exists. If it does not exist, the updated file name is used. If it does exist, a new random suffix is tried, etc... Use this mode if you just want a unique name (for example for a temporary file) and you don't care about the actual name.
- Sequential+Always: if you select this option, the same as Sequential but it always appends a number, even if the default copied file does not exist.
- Random+Always: if you select this option, the naming will follow the same rules as when the Random option is selected, but it always appends a suffix, even if the default copied file does not exist.