Skip to main content

make_temp

Function make_temp 

Source
pub fn make_temp(
    base: &Path,
    prefix: &str,
    now: DateTime<Utc>,
) -> Result<PathBuf>
Expand description

A new directory under base named <prefix>YYYYMMDD_HHMMSS__<random> with now in local time (chrono::Local); returns the created directory (mode 0700, a random decimal suffix, retried on a name clash up to 10000 attempts).