Create Temp Folder

Creates a temporary folder upon execute and exposes its path as flow variable. This can be useful in (a) demo applications where the actual path of the output is not all that relevant, e.g. the KNIME public workflow server and (b) KNIME WebPortal and quickform flows, where some data is written, which is later downloaded by means of, e.g. a web link. The folder is deleted upon closing the workflow. The node can be also configured in a way that the created temporary folder is deleted upon reset.
Note: By default the temporary folder is created directly in 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 file system and location for creating the temporary folder.
Create missing folders
If enabled, missing folders in the specified path will be created automatically.
Delete temp folder on reset
Check this box to delete the folder and all its content when the node is reset.
Temp folder prefix
Name prefix of the temporary folder. It will be amended by some random number to ensure uniqueness.
Export path as (variable name)
The name of the exported variable denoting the actual path of the created temporary folder.
Additional path variables
A list of additional variables that will be created by the node. Each variable will denote a path to a file or folder.
  • 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.