GLib.file_error_from_errno
function file_error_from_errno(err_no: Number(gint)): GLib.FileError {
// Gjs wrapper for g_file_error_from_errno()
}
Gets a GLib.FileError 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 GLib.FileError values will exist.
Normally a GLib.FileError value goes into a GLib.Error returned from a function that manipulates files. So you would use GLib.file_error_from_errno when constructing a GLib.Error.
- err_no
an "errno" value
- Returns
GLib.FileError corresponding to the given @errno