createTempDirectory

Create temporary directory Note, that caller is responsible to remove created directory. The temp directory will be created inside specified path.

  1. string createTempDirectory(string prefix)
  2. string createTempDirectory(string path, string prefix)
    string
    createTempDirectory
    (
    in string path
    ,
    in string prefix
    )

Parameters

path string

path to already existing directory to create temp directory inside. Default: std.file.tempDir

prefix string

prefix to be used in name of temp directory. Default: "tmp"

Return Value

Type: string

string, representing path to created temporary directory

Throws

PathException in case of error

Meta