create
Description:
[ Version ( since = "2.6" ) ]
[ CCode ( cname = "g_mkdir" ) ]
public int create (string pathname, int mode)
[ CCode ( cname = "g_mkdir" ) ]
public int create (string pathname, int mode)
A wrapper for the POSIX mkdir function.
The mkdir function attempts to create a directory with the given name and permissions. The mode argument is ignored on Windows.
See your C library manual for more details about mkdir.
Parameters:
mode |
permissions to use for the newly created directory |
filename |
a pathname in the GLib file name encoding (UTF-8 on Windows) |
Returns:
0 if the directory was successfully created, -1 if an error occurred |
Namespace: GLib.DirUtils
Package: glib-2.0