fileErrorFromErrno

Gets a #GFileError constant based on the passed-in err_no.

For example, if you pass in EEXIST this function returns G_FILE_ERROR_EXIST. Unlike errno values, you can portably assume that all #GFileError values will exist.

Normally a #GFileError value goes into a #GError returned from a function that manipulates files. So you would use glib.global.fileErrorFromErrno when constructing a #GError.

fileErrorFromErrno
(
int errNo
)

Parameters

errNo int

an "errno" value

Return Value

Type: glib.types.FileError

#GFileError corresponding to the given err_no