createTempPath

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

  1. Path createTempPath(string prefix)
  2. Path createTempPath(string path, string prefix)
    createTempPath
    (
    in string path
    ,
    in string prefix
    )
  3. Path createTempPath(Path path, 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: Path

Path to created temp directory

Throws

PathException in case of error

Meta