Move Folder

With this node you can move a folder or its content to another location.

It has the following configuration options:

  • Folder to move: here you can specify which folder should be moved. Select the pencil to open Expression Builder.
  • To file or folder: here you can specify the folder to move the folder of folder content to. Select the pencil to open Expression Builder.
  • Only move contents: if you select this checkbox, only the content of the folder is moved. If you leave this checkbox unselected, both the folder itself and the content are moved.
  • Create folders: if you select this checkbox, all folders needed to move the folder will be created. If you leave this checkbox unselected, moving to a folder that does not exist will fail (for example when you generate to folder on the fly).
  • Overwrite mode: here you can select the required behavior when files and folders already exist in the To Folder. Options:
    • DoNotReplaceRootFolder: if you select this option, the folder move will fail if the specified To Folder already exists (and Unique Name Mode is set to None).
    • ReplaceRootFolder: if you select this option, the specified To Folder is deleted first (in case it already exists), then the move is executed.
    • MergeTreeAndDoNotReplaceFiles: if you select this option, the To Folder will contain the merged result of the Folder To Move and an already existing folder (if applicable). If the To Folder does not yet exist, this works exactly like ReplaceRootFolder. If the To Folder does exist, the files in the Folder To Move will only be moved if there is no corresponding existing file in the To Folder.
    • MergeTreeAndReplaceFiles: if you select this option, the To Folder will contain the merged result of the Folder To Move and an already existing folder (if applicable). If the To Folder does not yet exist, this works exactly like ReplaceRootFolder. If the To Folder does exist and if a corresponding file in this folder is found, it will be deleted first and the incoming file will be moved. This is the case for each file in the incoming folder.
  • Unique name mode: here you can control the naming of the moved folder. Options:
    • None: if you select this option, the same name as the input folder will be used.
    • Sequential: the specified name will be used if the default moved folder does not exist. However, if it does exist, the system will try to add 1 to the folder name, and check if that folder exists. If it does not exist, the updated folder name is used. If it does exist, 2 is tried, etc...
    • Random: the specified name will be used if the default moved folder does not exist. However, if it does exist, the system will try to add a random suffix to the folder name, and check if that folder exists. If it does not exist, the updated folder 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 folder) and you don't care about the actual name.
    • Sequential+Always: the same as Sequential but it always appends a number, even if the default moved folder 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 moved folder does not exist.