createTempDir
createTempDir(
prefix,parentDirectory?):Promise<string>
Defined in: packages/node/src/fs/create-temp-dir.ts:16
Creates a fresh temporary directory named <prefix>-XXXXXX.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”string
The prefix for the temporary directory name.
parentDirectory?
Section titled “parentDirectory?”string
Directory to create it under. Defaults to the OS
temporary directory. Pass the eventual destination’s own filesystem when
the directory is staging for a rename, which is only atomic within one
filesystem.
Returns
Section titled “Returns”Promise<string>
A promise that resolves to the path of the newly created temporary directory.