gio Constantsthe built-in constants of the gio moduleSynopsisDescriptionGio AppInfo Create Flags Constants
Flags used when creating a gio.AppInfogio.APP_INFO_CREATE_NONENo flags.gio.APP_INFO_CREATE_NEEDS_TERMINALApplication opens in a terminal window. gio.APP_INFO_CREATE_SUPPORTS_URISApplication supports URI arguments. Gio Emblem Origin Constants
GEmblemOrigin is used to add information about the origin of the emblem to GEmblem.
gio.EMBLEM_ORIGIN_DEVICEEmbleme adds device-specific information.gio.EMBLEM_ORIGIN_LIVEMETADATAEmblem depicts live metadata, such as "readonly".gio.EMBLEM_ORIGIN_TAGEmblem comes from a user-defined tag, e.g. set by nautilus (in the future).gio.EMBLEM_ORIGIN_UNKNOWNEmblem of unknown origin.Gio Error Constants
GIOError Error codes returned by GIO functions.
gio.ERROR_ALREADY_MOUNTEDFile is already mounted.gio.ERROR_BUSYFile is busy.gio.ERROR_CANCELLEDOperation was cancelled. See
gio.Cancellable.
gio.ERROR_CANT_CREATE_BACKUPBackup couldn't be created.gio.ERROR_CLOSEDFile was closed.gio.ERROR_EXISTSFile already exists error.gio.ERROR_FAILEDGeneric error condition for when any operation fails.gio.ERROR_FAILED_HANDLEDOperation failed and a helper program has already interacted with
the user. Do not display any error dialog. gio.ERROR_FILENAME_TOO_LONGFilename is too many characters.gio.ERROR_HOST_NOT_FOUNDHost couldn't be found (remote operations).gio.ERROR_INVALID_ARGUMENTInvalid argument.gio.ERROR_INVALID_FILENAMEFilename is invalid or contains invalid characters.gio.ERROR_IS_DIRECTORYFile is a directory error.gio.ERROR_NOT_DIRECTORYFile is not a directory.gio.ERROR_NOT_EMPTYFile is a directory that isn't empty.gio.ERROR_NOT_FOUNDFile not found error.gio.ERROR_NOT_MOUNTABLE_FILEFile cannot be mounted.gio.ERROR_NOT_MOUNTEDFile isn't mounted. gio.ERROR_NOT_REGULAR_FILEFile is not a regular file.gio.ERROR_NOT_SUPPORTEDOperation not supported for the current backend.gio.ERROR_NOT_SYMBOLIC_LINKFile is not a symbolic link.gio.ERROR_NO_SPACENo space left on drive. gio.ERROR_PENDINGOperations are still pending.gio.ERROR_PERMISSION_DENIEDPermission denied.gio.ERROR_READ_ONLYFile is read only. gio.ERROR_TIMED_OUTOperation timed out. gio.ERROR_TOO_MANY_LINKSFile contains too many symbolic links. gio.ERROR_TOO_MANY_OPEN_FILESThe current process has too many files open and can't open any
more. Duplicate descriptors do count toward this limit. Since 2.20gio.ERROR_WOULD_BLOCKOperation would block.gio.ERROR_WOULD_MERGEOperation would merge files.gio.ERROR_WOULD_RECURSEOperation would be recursive.gio.ERROR_WRONG_ETAGFile's Entity Tag was incorrect. Gio File Attribute Type Constants
The data types for file attributes.
gio.FILE_ATTRIBUTE_TYPE_BOOLEANa boolean value.gio.FILE_ATTRIBUTE_TYPE_BYTE_STRINGa zero terminated string of non-zero bytes.gio.FILE_ATTRIBUTE_TYPE_INT32a signed 4-byte/32-bit integer.gio.FILE_ATTRIBUTE_TYPE_INT64a signed 8-byte/64-bit integer.gio.FILE_ATTRIBUTE_TYPE_INVALIDindicates an invalid or uninitalized type.gio.FILE_ATTRIBUTE_TYPE_OBJECTa gobject.GObject.gio.FILE_ATTRIBUTE_TYPE_STRINGa null terminated UTF8 string.gio.FILE_ATTRIBUTE_TYPE_UINT32an unsigned 4-byte/32-bit integer.gio.FILE_ATTRIBUTE_TYPE_UINT64an unsigned 8-byte/64-bit integer.Gio File Attribute Flags Constants
Flags specifying the behaviour of an attribute.
gio.FILE_ATTRIBUTE_INFO_NONEno flags set.gio.FILE_ATTRIBUTE_INFO_COPY_WITH_FILEcopy the attribute values when the file is copied.gio.FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVEDcopy 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_NONENo flags set.gio.FILE_CREATE_PRIVATECreate 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_NONENo flags set.gio.FILE_COPY_OVERWRITEOverwrite any existing files.gio.FILE_COPY_BACKUPMake a backup of any existing files.gio.FILE_COPY_NOFOLLOW_SYMLINKSDon't follow symlinks.gio.FILE_COPY_ALL_METADATACopy all file metadata instead of just default set used for copy
(see gio.FileInfo).gio.FILE_COPY_NO_FALLBACK_FOR_MOVEDon't use copy and delete fallback if native move not supported.gio.FILE_COPY_TARGET_DEFAULT_PERMSLeaves 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_NONENo flags set.gio.FILE_MONITOR_WATCH_MOUNTSWatch for mount events.Gio File Create Flags Constants
Flags used when querying a
gio.FileInfo.
gio.FILE_QUERY_INFO_NONENo flags set.gio.FILE_QUERY_INFO_NOFOLLOW_SYMLINKSDon't follow symlinks.Gio Mount Mount Flags Constants
Flags used when mounting a mount.
gio.MOUNT_MOUNT_NONENo flags set.Gio Mount Unmount Flags Constants
Flags used when unmounting a mount.
gio.MOUNT_UNMOUNT_NONENo flags set.gio.MOUNT_UNMOUNT_FORCEUnmount even if there are outstanding file operations on the mount.