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

Parameters

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