Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
temporary-dir.hh File Reference

Go to the source code of this file.

Functions

Path nix::createTempDir (const Path &tmpRoot, const Path &prefix, bool includePid, bool useGlobalCounter, mode_t mode)
std::pair< AutoCloseFD, Pathnix::createTempFile (const Path &prefix)
Path nix::defaultTempDir ()

Function Documentation

◆ createTempDir()

Path nix::createTempDir ( const Path & tmpRoot = "",
const Path & prefix = "nix",
bool includePid = true,
bool useGlobalCounter = true,
mode_t mode = 0755 )

Create a temporary directory.

◆ createTempFile()

std::pair< AutoCloseFD, Path > nix::createTempFile ( const Path & prefix = "nix")

Create a temporary file, returning a file handle and its path.

◆ defaultTempDir()

Path nix::defaultTempDir ( )

Return settings.tempDir, TMPDIR, or the default temporary directory if unset or empty.