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 File Create Flags Constants Flags used when an operation may create a file. gio.FILE_CREATE_NONE No flags set. gio.FILE_CREATE_PRIVATE Create a file that can only be accessed by the current user. gio.FILE_CREATE_REPLACE_DESTINATION Replace the destination as if it didn't exist before. Don't try to keep any old permissions, replace instead of following links. This is generally useful if you're doing a "copy over" rather than a "save new version of" replace operation. You can think of it as "unlink destination" before writing to it, although the implementation may not be exactly like that. Gio File Copy Flags Constants Flags used when copying or moving files. gio.FILE_COPY_NONE No flags set. gio.FILE_COPY_OVERWRITE Overwrite any existing files. gio.FILE_COPY_BACKUP Make a backup of any existing files. gio.FILE_COPY_NOFOLLOW_SYMLINKS Don't follow symlinks. gio.FILE_COPY_ALL_METADATA Copy all file metadata instead of just default set used for copy (see gio.FileInfo). gio.FILE_COPY_NO_FALLBACK_FOR_MOVE Don't use copy and delete fallback if native move not supported. gio.FILE_COPY_TARGET_DEFAULT_PERMS Leaves target file with default perms, instead of setting the source file perms. Gio File Copy Monitor Constants Flags used to set what a gio.FileMonitor will watch for. gio.FILE_MONITOR_NONE No flags set. gio.FILE_MONITOR_WATCH_MOUNTS Watch for mount events. Gio File Create Flags Constants Flags used when querying a gio.FileInfo. gio.FILE_QUERY_INFO_NONE No flags set. gio.FILE_QUERY_INFO_NOFOLLOW_SYMLINKS Don't follow symlinks. 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.