String to Path (Variable)

This node converts the selected string variables into path variables.

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

Variable selection
The String variables that will be converted to Path variables. The variables have to contain Strings with correct Path /foo/bar.txt syntax.
File system
Select the file system to which the created paths should be related to. There are four default file system options to choose from:
  • Local File System: Resolve the path to your local file system.
  • Mountpoint: Resolves the path to a mountpoint. When selected, a new drop-down menu appears to choose the mountpoint. Unconnected mountpoints are grayed out but can still be selected. 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: 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.
  • Custom/KNIME URL: Resolve the paths to a URL (e.g. file://, http:// or knime:// protocol). When selected, a spinner appears that allows you to specify the desired connection and write timeout in milliseconds..
It is possible to use other file systems with this node. Therefore, 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 File System Connection port.
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 grayed 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.
Suffix added to the new variables
The suffix that will be added to the name of the String variables that are converted to create the names of the new Path variables.
Fail if file/folder does not exist
Checks if the files or folders referenced by the created Paths are existing and will abort if one is not.

Input Ports

Icon
Input variables.
Icon
The file system connection.

Output Ports

Icon
Input variables with additional converted Path variables.

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.