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 one of the following options for the file system to use:
  • Connected file system: Connect a file system port to this node to use it.
  • Local file system: The local file system of the machine running KNIME. Note that this option is not available when working remotely.
  • Current space: The space that contains the current workflow.
  • Embedded data: The embedded data of the current workflow.
  • URL: A custom URL.
Relative to
Choose the base location to which the file path is relative to.
  • Space: The root of the space that contains the current workflow.
  • Workflow: The current workflow itself.
Timeout
The timeout in milliseconds used when reading from or writing to a URL.
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.
Append suffix if variable already exists
If selected, and if an output flow variable has the same name as an existing one, a unique suffix is appended to make the name unique. If not selected, the output flow variable will overwrite the existing flow variable.

Input Ports

Icon
Input variables.
Icon
The file system connection.

Output Ports

Icon
Input variables with additional converted Path variables.

Popular Successors

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.