Function glib::mkdir_with_parents

source ·
pub fn mkdir_with_parents(pathname: impl AsRef<Path>, mode: i32) -> i32
Expand description

Create a directory if it doesn’t already exist. Create intermediate parent directories as needed, too.


a pathname in the GLib file name encoding


permissions to use for newly created directories


0 if the directory already exists, or was successfully created. Returns -1 if an error occurred, with errno set.