gio Constants the built-in constants of the gio module Synopsis Description Gio AppInfo Create Flags Constants Flags used when creating a gio.AppInfo gio.APP_INFO_CREATE_NONE No flags. gio.APP_INFO_CREATE_NEEDS_TERMINAL Application opens in a terminal window. gio.APP_INFO_CREATE_SUPPORTS_URIS Application supports URI arguments. Gio Emblem Origin Constants GEmblemOrigin is used to add information about the origin of the emblem to GEmblem. gio.EMBLEM_ORIGIN_DEVICE Embleme adds device-specific information. gio.EMBLEM_ORIGIN_LIVEMETADATA Emblem depicts live metadata, such as "readonly". gio.EMBLEM_ORIGIN_TAG Emblem comes from a user-defined tag, e.g. set by nautilus (in the future). gio.EMBLEM_ORIGIN_UNKNOWN Emblem of unknown origin. Gio Error Constants GIOError Error codes returned by GIO functions. gio.ERROR_ALREADY_MOUNTED File is already mounted. gio.ERROR_BUSY File is busy. gio.ERROR_CANCELLED Operation was cancelled. See gio.Cancellable. gio.ERROR_CANT_CREATE_BACKUP Backup couldn't be created. gio.ERROR_CLOSED File was closed. gio.ERROR_EXISTS File already exists error. gio.ERROR_FAILED Generic error condition for when any operation fails. gio.ERROR_FAILED_HANDLED Operation failed and a helper program has already interacted with the user. Do not display any error dialog. gio.ERROR_FILENAME_TOO_LONG Filename is too many characters. gio.ERROR_HOST_NOT_FOUND Host couldn't be found (remote operations). gio.ERROR_INVALID_ARGUMENT Invalid argument. gio.ERROR_INVALID_FILENAME Filename is invalid or contains invalid characters. gio.ERROR_IS_DIRECTORY File is a directory error. gio.ERROR_NOT_DIRECTORY File is not a directory. gio.ERROR_NOT_EMPTY File is a directory that isn't empty. gio.ERROR_NOT_FOUND File not found error. gio.ERROR_NOT_MOUNTABLE_FILE File cannot be mounted. gio.ERROR_NOT_MOUNTED File isn't mounted. gio.ERROR_NOT_REGULAR_FILE File is not a regular file. gio.ERROR_NOT_SUPPORTED Operation not supported for the current backend. gio.ERROR_NOT_SYMBOLIC_LINK File is not a symbolic link. gio.ERROR_NO_SPACE No space left on drive. gio.ERROR_PENDING Operations are still pending. gio.ERROR_PERMISSION_DENIED Permission denied. gio.ERROR_READ_ONLY File is read only. gio.ERROR_TIMED_OUT Operation timed out. gio.ERROR_TOO_MANY_LINKS File contains too many symbolic links. gio.ERROR_TOO_MANY_OPEN_FILES The current process has too many files open and can't open any more. Duplicate descriptors do count toward this limit. Since 2.20 gio.ERROR_WOULD_BLOCK Operation would block. gio.ERROR_WOULD_MERGE Operation would merge files. gio.ERROR_WOULD_RECURSE Operation would be recursive. gio.ERROR_WRONG_ETAG File's Entity Tag was incorrect. Gio File Attribute Type Constants The data types for file attributes. gio.FILE_ATTRIBUTE_TYPE_BOOLEAN a boolean value. gio.FILE_ATTRIBUTE_TYPE_BYTE_STRING a zero terminated string of non-zero bytes. gio.FILE_ATTRIBUTE_TYPE_INT32 a signed 4-byte/32-bit integer. gio.FILE_ATTRIBUTE_TYPE_INT64 a signed 8-byte/64-bit integer. gio.FILE_ATTRIBUTE_TYPE_INVALID indicates an invalid or uninitalized type. gio.FILE_ATTRIBUTE_TYPE_OBJECT a gobject.GObject. gio.FILE_ATTRIBUTE_TYPE_STRING a null terminated UTF8 string. gio.FILE_ATTRIBUTE_TYPE_UINT32 an unsigned 4-byte/32-bit integer. gio.FILE_ATTRIBUTE_TYPE_UINT64 an unsigned 8-byte/64-bit integer. Gio File Attribute Flags Constants Flags specifying the behaviour of an attribute. gio.FILE_ATTRIBUTE_INFO_NONE no flags set. gio.FILE_ATTRIBUTE_INFO_COPY_WITH_FILE copy the attribute values when the file is copied. gio.FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED copy the attribute values when the file is moved. Gio Mount Mount Flags Constants Flags used when mounting a mount. gio.MOUNT_MOUNT_NONE No flags set. Gio Mount Unmount Flags Constants Flags used when unmounting a mount. gio.MOUNT_UNMOUNT_NONE No flags set. gio.MOUNT_UNMOUNT_FORCE Unmount even if there are outstanding file operations on the mount.