FileError
Description:
[ CCode ( has_type_id = false ) ]
public errordomain FileError
Values corresponding to errno
codes returned from file operations on UNIX.
Unlike errno
codes, GFileError values are available on all systems, even Windows. The exact meaning of each code depends on
what sort of file operation you were performing; the UNIX documentation gives more details. The following error code descriptions come
from the GNU C Library manual, and are under the copyright of that manual.
It's not very portable to make detailed assumptions about exactly which errors will be returned from a given operation. Some errors don't
occur on some systems, etc., sometimes there are subtle differences in when a system will report a given error, etc.
Content:
Error codes:
- ACCES - Permission denied; the file
permissions do not allow the attempted operation.
- AGAIN - Resource temporarily unavailable; the
call might work if you try again later.
- BADF - Bad file descriptor; for example, I/O on
a descriptor that has been closed or reading from a descriptor open only for writing (or vice versa).
- EXIST - Operation not permitted; only the
owner of the file (or other resource) or processes with special privileges can perform the operation.
- FAILED - Does not correspond to a UNIX error
code; this is the standard "failed for unspecified reason" error code present in all Error
error code enumerations.
- FAULT - You passed in a pointer to bad memory.
- INTR - Interrupted function call; an
asynchronous signal occurred and prevented completion of the call.
- INVAL - Invalid argument.
- IO - Input/output error; usually used for
physical read or write errors.
- ISDIR - File is a directory; you cannot open a
directory for writing, or create or remove hard links to it.
- LOOP - Too many levels of symbolic links were
encountered in looking up a file name.
- MFILE - The current process has too many files
open and can't open any more.
- NAMETOOLONG - Filename too long.
- NFILE - There are too many distinct file
openings in the entire system.
- NODEV - The underlying file system of the
specified file does not support memory mapping.
- NOENT - No such file or directory.
- NOMEM - No memory available.
- NOSPC - No space left on device; write
operation on a file failed because the disk is full.
- NOSYS - Function not implemented; this
indicates that the system is missing some functionality.
- NOTDIR - A file that isn't a directory was
specified when a directory is required.
- NXIO - No such device or address.
- PERM - Operation not permitted; only the owner
of the file (or other resource) or processes with special privileges can perform the operation.
- PIPE - Broken pipe; there is no process reading
from the other end of a pipe.
- ROFS - The directory containing the new link
can't be modified because it's on a read-only file system.
- TXTBSY - Text file busy.
Static methods: