Transfer Files (Table)

This node copies or moves files from a source (folder or file) to another folder. The node offers options to either specify the destination based on a column in the input table or via a file chooser. If the "Delete source files (move)" option is checked the node performs a move operation for which the source files will be deleted after the copying process is done.

This node can access a variety of different file systems. More information about file handling in KNIME can be found in the official File Handling Guide.

Options

Source column
Allows to select the column containing the paths to the files/folders that must be copied/moved.
From table
Allows to select the column containing the destination, i.e., the new location and names of the files/folders to be copied/moved.
Note: If the source references a file/folder the destination also has to be a file/folder.
From file chooser
This option allows you to specify a folder where you want to copy/move the (source) files/folders to. There are three default file system options to choose from:
  • Local File System: Allows you to select a location on your local system.
  • Mountpoint: Allows you to write to a mountpoint. When selected, a new drop-down menu appears to choose the mountpoint. Unconnected mountpoints are greyed out but can still be selected (note that browsing is disabled in this case). Go to the KNIME Explorer and connect to the mountpoint to enable browsing. A mountpoint is displayed in red if it was previously selected but is no longer available. You won't be able to save the dialog as long as you don't select a valid, i.e. known, mountpoint.
  • Relative to: Allows you to choose whether to resolve the path relative to the current mountpoint, current workflow, or the current workflow's data area. When selected, a new drop-down menu appears to choose which of the three options to use.
It is possible to use other file systems with this node. For this you have to enable the file system connection input port of this node by clicking the ... in the bottom left corner of the node's icon and choose Add Destination File System Connection.
Afterwards, you can simply connect the desired connector node to this node. The file system connection will then be shown in the drop-down menu. It is greyed out if the file system is not connected, in which case you have to (re)execute the connector node first. Note: The default file systems listed above can't be selected if a file system is provided via the input port.
Create missing folders
Select if the folders of the selected output location should be created if they do not already exist. If this option is unchecked, the node will fail if a folder does not exist.
Destination file path
Depending on the selected mode the location of the files/folders to be copied to the destination folder will differ.
  • Include only the selected file/folder: This mode ensures that the selected file/folder is directly copied into the destination folder.
  • Include all folders in the source path: This mode ensures that the folder containing the selected source file/folder will also be created inside the destination folder, i.e., if the source is src_folder/src_subfolder and the destination is dest_folder the content of the source is copied to dest_folder/src_folder/src_subfolder.
  • Include all folders in the source path succeeding the prefix: This mode behaves similar to the Include all folders in the source path option, except that the specified folder prefix (the beginning of the path) is being ignored, e.g., if the specified prefix is src_folder the source path is src_folder/src_subfolder, the source is copied to dest_folder/src_subfolder. Note: In special cases using this option can try to copy the source file/folder to a location that is outside the specified destination. In this case the node will fail.
Transfer policy
  • Overwrite: Will replace any existing file.
  • Overwrite if newer: Will replace any existing file if the source file's last modified date is after the destination file's last modified date, otherwise the file will not be overwritten and the copy process is being continued.
  • Ignore: Will ignore if a file already exists and continues the copying process.
  • Fail: Will issue an error during the node's execution (to prevent unintentional overwrite).
Delete source files / folders
If this option is checked all files which have been successfully copied to the destination folder will be deleted in the source folder. The output contains an additional column indicating if the file has been deleted (true) or not (false).
Fail on unsuccessful deletion
If the 'Delete source files (move)' option is activated and something goes wrong during the deletion process the node will fail. This option is only available if the before mentioned option is selected.
Detailed output
If selected the output will not only show the folder that has been copied/moved but also all the files/folders it contains.
Fail if source does not exist
If selected the node will fail in case the source file/folder to copy/move does not exist.

Input Ports

Icon
The input table containing a Path column.
Icon
The source file system connection.
Icon
The destination file system connection.

Output Ports

Icon
A table revealing the files/folders which were copied/moved. It contains a source and destination path column as well as a folder identifier, and a copy status column. Additionally, if Delete source files / folders is selected the output contains a source deleted column and if Fail if source does not exist is unchecked the output has a source exist(ed) column.

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.