Local File Name Variables (branch safe)

Creates a String variable with the variable name as specified. The value of the variable is an absolute file name based on the current workflow file path taken from the current context.

A second String variable with the suffix _url contains the file name using url syntax.

A third Path variable with the suffix _path contains the Path version of the specific file location.

A regular expression is used to validate, as far as possible, that the given file name is a valid relative file name. The file location will automatically be generated relative to the workflow's data folder. This component does not in itself create the actual path in the file system, nor does it verify that the location exists. It simply conveniently builds the flow variables that can be used by subsequent nodes in your workflow.

This differs from the [Create File/Folder Variables] node in that the it creates both String and Path variables for the same file that can be used as appropriate with a variety of nodes. In addition, the constructed filename is always Absolute, but is built to be relative to the local Workflow and so remains portable, and will adapt if the workflow is saved under a new name.

v1 @takbb Brian Bates 25 April 2021

Options

File Name Flow Variable
Enter the base name for the new flow variable. Do not enter a path. Three flow variables will be created. These will be the chosen name, plus a PATH type variable with the suffix _path and a URL format variable with the suffix _URL.%%00010%%00010
Enter File Name
Enter the Name (name.ext without path) to be given to the new File. The filename will be relative to the current workflow's data folder. so if the file has the name myfile.xlsx, the path will be .\data\myfile.xlsx

Input Ports

This node has no input ports

Output Ports

Icon
No description for this port available.

Nodes

Extensions

Links