[][src]Function coreutils_core::mktemp::mkdtemp

pub fn mkdtemp(template: &str) -> Result<String>

Creates a temporary directory based on the given template.

The template should end with a number of X characters.

Some libc implementations requires the template to end with a minimum number of X characters (for example, 6 in glibc as of version 2.29).

Errors

If a internal call set a errno (I/O OS error), an error variant will be returned.