Function std::os::mkdir_recursive

pub fn mkdir_recursive(p: &Path, mode: c_int) -> bool

Creates a directory with a given mode. Returns true iff creation succeeded. Also creates all intermediate subdirectories if they don't already exist, giving all of them the same mode.