getTempFile

Creates a temporary file in the specified directory with the specified prefix and suffix if passed.

Method Signature

getTempFile(directory=[string], prefix=[string], suffix=[string])

Arguments

ArgumentTypeRequiredDescriptionDefault

directory

string

false

The directory in which to create the temp file, we default to the system temp directory

/var/folders/sh/yq09rnbj48764cvf2k4nhcxh0000gn/T/

prefix

string

false

The prefix string to be used in generating the file's name; may be empty

suffix

string

false

The suffix string to be used in generating the file's name; may be empty, in which case ".tmp" is used

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC