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
Select the column containing the paths to the files/folders that must be copied/moved.
Fail if source does not exist
If the source file/folder to copy/move does not exit the node will fail.
Delete source files / folders
Delete all files/folders that have been successfully copied from 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 / folders' option is activated and something goes wrong during the deletion process the node will fail.
Choose destination
Select a method with which to set the destination.
  • From file chooser: Specify a folder where you want to copy/move the (source) files/folders to.
  • From table: 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.
Destination column
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.
Destination path
Select a file system and destination to copy/move files/folders to.
Create missing folders
If enabled, missing folders in the specified path will be created automatically.
Overwrite policy
How to handle files to be copied already existing in destination folder
  • Fail: Will issue an error during the node's execution (to prevent unintentional overwrite).
  • Ignore: Will ignore if a file already exists and continue the copying process.
  • 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 will continue.
Destination file path
Depending on the selected mode the location of the files/folders to be copied to the destination folder will differ.
  • File/folder only: Copy only the selected file/folder itself into the destination folder, without recreating any parent directories from the source path.
  • Full path: Recreate the full directory structure from the source path inside the destination folder. For example, if the source is src_folder/src_subfolder and the destination is dest_folder, the content will be copied to dest_folder/src_folder/src_subfolder.
  • Path after prefix: Recreate the directory structure from the source path, but ignore the specified folder prefix. For example, if the prefix is src_folder and the source path is src_folder/src_subfolder, the content will be copied to dest_folder/src_subfolder. Note: In special cases this option may attempt to copy the source to a location outside the specified destination, in which case the node will fail.
Folder prefix
The folder prefix (the beginning of the path) to be ignored when using 'Path after prefix' mode.
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.

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.

Popular Predecessors

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.