Move File
With this node you can move one or more files to another location.
It has the following configuration options:
- File to move: here you can specify which file(s) should be moved. Select the pencil to open Expression Builder.
- To file or folder: here you can specify to which location the file(s) should be moved. Select the pencil to open Expression Builder.
- Create Folders: if you select this checkbox, all necessary folder(s) are created if they don't exist. If you leave this checkbox unselected, the node will fail if you move the file(s) to a non-existing folder.
- 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.
- Delete Enclosing Folder: if you select this checkbox, the folder that contained the moved file will be removed as well. This is helpful when the moved file(s) was/were initially created in a temporary folder. The folder will only be deleted in case it is empty after moving the file(s). If you requested to delete the folder when it is not empty, a warning pops up. The node will not fail.