create_with_parents
Description:
[ Version ( since = "2.8" ) ]
[ CCode ( cname = "g_mkdir_with_parents" ) ]
public int create_with_parents (string pathname, int mode)
[ CCode ( cname = "g_mkdir_with_parents" ) ]
public int create_with_parents (string pathname, int mode)
Create a directory if it doesn't already exist.
Create intermediate parent directories as needed, too.
Parameters:
pathname |
a pathname in the GLib file name encoding |
mode |
permissions to use for newly created directories |
Returns:
0 if the directory already exists, or was successfully created. Returns -1 if an error occurred, with errno set. |
Namespace: GLib.DirUtils
Package: glib-2.0