Gio.File::make_directory
function vfunc_make_directory(cancellable: Gio.Cancellable): Boolean {
}
Creates a directory. Note that this will only create a child directory of the immediate parent directory of the path or URI given by the Gio.File. To recursively create directories, see Gio.File.prototype.make_directory_with_parents. This function will fail if the parent directory does not exist, setting @error to Gio.IOErrorEnum.not_found. If the file system doesn't support creating directories, this function will fail, setting @error to Gio.IOErrorEnum.not_supported.
For a local Gio.File the newly created directory will have the default (current) ownership and permissions of the current process.
If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gio.IOErrorEnum.cancelled will be returned.
- cancellable
optional Gio.Cancellable object, null to ignore
- Returns
true on successful creation, false otherwise.