gnomevfs Constants

gnomevfs Constants — the built-in constants of the gnomevfs module

Synopsis

      gnomevfs Directory Visit Options
      gnomevfs File Flags
      gnomevfs FileInfo Fields
      gnomevfs File Permissions
      gnomevfs FileInfo Options
      gnomevfs FileInfo Set Mask
      gnomevfs Open Mode Constants
      gnomevfs Seek Constants
      gnomevfs Monitor Type Constants
    

Description

gnomevfs Directory Visit Options

These options control the way in which directories are visited.

gnomevfs.DIRECTORY_VISIT_DEFAULTThe default directory visit mode.
gnomevfs.DIRECTORY_VISIT_SAMEFSVisit only directories on the same file system as the parent.
gnomevfs.DIRECTORY_VISIT_LOOPCHECKPrevent a loop if it would be caused (e.g. by following a symbolic link).

gnomevfs File Flags

Special flags that a gnomevfs.FileInfo object can have.

gnomevfs.FILE_FLAGS_NONENo flags.
gnomevfs.FILE_FLAGS_SYMLINKWhether the file is a symbolic link.
gnomevfs.FILE_FLAGS_LOCALWhether the file is on a local filesystem.

gnomevfs FileInfo Fields

Flags indicating what fields in a gnomevfs.FileInfo object are valid.

gnomevfs.FILE_INFO_FIELDS_NONE
gnomevfs.FILE_INFO_FIELDS_TYPE
gnomevfs.FILE_INFO_FIELDS_PERMISSIONS
gnomevfs.FILE_INFO_FIELDS_FLAGS
gnomevfs.FILE_INFO_FIELDS_DEVICE
gnomevfs.FILE_INFO_FIELDS_INODE
gnomevfs.FILE_INFO_FIELDS_LINK_COUNT
gnomevfs.FILE_INFO_FIELDS_SIZE
gnomevfs.FILE_INFO_FIELDS_BLOCK_COUNT
gnomevfs.FILE_INFO_FIELDS_IO_BLOCK_SIZE
gnomevfs.FILE_INFO_FIELDS_ATIME
gnomevfs.FILE_INFO_FIELDS_MTIME
gnomevfs.FILE_INFO_FIELDS_CTIME
gnomevfs.FILE_INFO_FIELDS_SYMLINK_NAME
gnomevfs.FILE_INFO_FIELDS_MIME_TYPE

gnomevfs File Permissions

File permissions. These are essentially the same as the unix permissions field.

gnomevfs.PERM_SUIDSet UID on access.
gnomevfs.PERM_SGIDSet GID on access.
gnomevfs.PERM_STICKYSticky.
gnomevfs.PERM_USER_READOwner has read permission.
gnomevfs.PERM_USER_WRITEOwner has write permission.
gnomevfs.PERM_USER_EXECOwner has execution permission.
gnomevfs.PERM_USER_ALLOwner has all permissions.
gnomevfs.PERM_GROUP_READGroup has read permission.
gnomevfs.PERM_GROUP_WRITEGroup has write permission.
gnomevfs.PERM_GROUP_EXECGroup has execution permission.
gnomevfs.PERM_GROUP_ALLGroup has all permissions.
gnomevfs.PERM_OTHER_READOthers have read permission.
gnomevfs.PERM_OTHER_WRITEOthers have write permission.
gnomevfs.PERM_OTHER_EXECOthers have execution permission.
gnomevfs.PERM_OTHER_ALLOthers have all permissions.

gnomevfs FileInfo Options

These options affect the way file information is retrieved.

gnomevfs.FILE_INFO_DEFAULT
gnomevfs.FILE_INFO_GET_MIME_TYPEDetect the MIME type.
gnomevfs.FILE_INFO_FORCE_FAST_MIME_TYPEOnly use fast MIME type detection (file extensions).
gnomevfs.FILE_INFO_FORCE_SLOW_MIME_TYPEForce slow MIME type detection where available (sniffing, algorithmic detection, etc).
gnomevfs.FILE_INFO_FOLLOW_LINKSAutomatically follow symbolic links and retrieve the properties of their target (recommended).

gnomevfs FileInfo Set Mask

These options affect which file aspects are changed in the set_file_info method.

gnomevfs.SET_FILE_INFO_NONEDon't set any file info fields.
gnomevfs.SET_FILE_INFO_NAMEChange the name.
gnomevfs.SET_FILE_INFO_PERMISSIONSChange the permissions.
gnomevfs.SET_FILE_INFO_OWNERChange the file's owner.
gnomevfs.SET_FILE_INFO_TIMEChange the file's time stamp(s).

gnomevfs Open Mode Constants

These options affect how files are opened.

gnomevfs.OPEN_NONE
gnomevfs.OPEN_READOpen the file for reading.
gnomevfs.OPEN_WRITEOpen the file for writing.
gnomevfs.OPEN_RANDOMAllow random access on the file.
gnomevfs.OPEN_TRUNCATETruncate the file.

gnomevfs Seek Constants

These constants are used to specify the start position for seek operations.

gnomevfs.SEEK_STARTThe start of the file.
gnomevfs.SEEK_CURRENTThe current position in the file.
gnomevfs.SEEK_ENDThe end of the file.

gnomevfs Monitor Type Constants

The type of resources that can be monitored.

gnomevfs.MONITOR_FILEMonitor a file.
gnomevfs.MONITOR_DIRECTORYMonitor a directory.

gnomevfs Monitor Events

Types of events that can be recieved from a monitor.

gnomevfs.MONITOR_EVENT_CHANGEDFile data was changed.
gnomevfs.MONITOR_EVENT_DELETEDFile was deleted.
gnomevfs.MONITOR_EVENT_STARTEXECUTING
gnomevfs.MONITOR_EVENT_STOPEXECUTING
gnomevfs.MONITOR_EVENT_CREATEDFile was created.
gnomevfs.MONITOR_EVENT_METADATA_CHANGEDFile's metadata was changed.