Reserves and returns a temporary file or folder path that will be deleted upon translation completion. An optional basename and extension can be supplied to further refine the filename portion of the resulting pathname.
This transformer is typically used in conjunction with the FeatureWriter or AttributeFileWriter in workflows that need a temporary file location that will live only for the duration of the translation. The files are then typically consumed downstream in the workflow by transformers like the Emailer or HTMLReportGenerator.
The resulting pathnames will look something like:
<FME temporary directory>/<process #s><TransformerName>_<uuid>/<basename><timestamp>_
For example, on Windows, the transformer will create a path that looks like this:
And on Linux/MacOS, the transformer will create a path that looks like this:
The FME_TEMP environment variable can override the default location for temporary folders. See https://knowledge.safe.com/articles/176/fme-temp-environment-variable.html for more details.
Each instance of this transformer will itself create a subfolder within the temporary folder in use, and return unique paths within that subfolder. This subfolder and its contents will be destroyed at the end of the translation, but before any END_PYTHON or END_TCL scripts are invoked.
This transformer accepts any feature.
Each input feature is output with the temporary pathname attribute added.
The attribute that contains the reserved unique temporary pathname.
Note that this value does not create a permanent file or folder. FME removes everything on the file system at the end of the translation.
An optional prefix for the actual filename portion of the temporary pathname being created.
An optional suffix for the actual filename. If this does not start with a period ".", then a period "." will be prepended to the specified suffix when it is used.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.