Create File/Folder Variables

This node allows to create path flow variables. This is done by selecting a base folder and then defining a list of paths pointing to files/folders relative to the base folder. After executing the node the specified list of paths is accessible for subsequent nodes via flow variables.

Note: The default base folder is the working directory of the workflow data area, as defined by “.“ in the Folder field.

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

Folder
Select a base folder for your paths.
File/Folder variables
A list of file/folder locations that will form a path with the selected base folder. Enter the name of the flow variable in the Variable name column and write the name of the file/folder in the Value column. In case of a file also fill in the File extension column. These will be added to the path shown in the Base location column.
  • Variable name: The name of the path variable.
  • Path: The path relative to the temporary directory.
  • File extension: Optional file extension (e.g., .txt, .csv). Leave empty for folder variables.

Input Ports

Icon
Input variables (optional).
Icon
The file system connection.

Output Ports

Icon
Flow Variables with path information.

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.