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
- Type: Flow Variable