Replace Path Variable

Creates a new path variable from a string and replaces a path variable of the same name (comprising name and suffix)

This component was written to provide a means of overwriting an existing Path flow variable, so that a single flow variable might be reusable for different file outputs. It does not appear that within a regular flow it is possible to "update" a path variable once it exists.

You can also use this component to create a totally new path variable without having to perform the usual trick of String Manipulation (Variable) followed by String to Path (Variable), which in fact is what this component will be doing on your behalf.

The path variable name is divided into two parts (name and suffix). so to create a path variable called filename_path, supply a name of "filename" and a suffix of "_path". This appears a little odd but is simply because of the way th String to Path (variable) node works. It requires a suffix to be applied to a name, so it was easier to simply replicate this behaviour here.

@takbb 30/09/2022

Options

File Path
Enter the file path string
Path Variable suffix
Specify the suffix to be applied to the path variable name
Path Variable name (without suffix)
Specify the name to use for the path variable without the suffix

Input Ports

Icon
Input data flow

Output Ports

Icon
Output data flow with newly created (or replaced) Path variable

Nodes

Extensions

Links