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_DEFAULT

The default directory visit mode.

gnomevfs.DIRECTORY_VISIT_SAMEFS

Visit only directories on the same file system as the parent.

gnomevfs.DIRECTORY_VISIT_LOOPCHECK

Prevent 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_NONE

No flags.

gnomevfs.FILE_FLAGS_SYMLINK

Whether the file is a symbolic link.

gnomevfs.FILE_FLAGS_LOCAL

Whether 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_SUID

Set UID on access.

gnomevfs.PERM_SGID

Set GID on access.

gnomevfs.PERM_STICKY

Sticky.

gnomevfs.PERM_USER_READ

Owner has read permission.

gnomevfs.PERM_USER_WRITE

Owner has write permission.

gnomevfs.PERM_USER_EXEC

Owner has execution permission.

gnomevfs.PERM_USER_ALL

Owner has all permissions.

gnomevfs.PERM_GROUP_READ

Group has read permission.

gnomevfs.PERM_GROUP_WRITE

Group has write permission.

gnomevfs.PERM_GROUP_EXEC

Group has execution permission.

gnomevfs.PERM_GROUP_ALL

Group has all permissions.

gnomevfs.PERM_OTHER_READ

Others have read permission.

gnomevfs.PERM_OTHER_WRITE

Others have write permission.

gnomevfs.PERM_OTHER_EXEC

Others have execution permission.

gnomevfs.PERM_OTHER_ALL

Others have all permissions.

gnomevfs FileInfo Options

These options affect the way file information is retrieved.

gnomevfs.FILE_INFO_DEFAULT

gnomevfs.FILE_INFO_GET_MIME_TYPE

Detect the MIME type.

gnomevfs.FILE_INFO_FORCE_FAST_MIME_TYPE

Only use fast MIME type detection (file extensions).

gnomevfs.FILE_INFO_FORCE_SLOW_MIME_TYPE

Force slow MIME type detection where available (sniffing, algorithmic detection, etc).

gnomevfs.FILE_INFO_FOLLOW_LINKS

Automatically 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_NONE

Don't set any file info fields.

gnomevfs.SET_FILE_INFO_NAME

Change the name.

gnomevfs.SET_FILE_INFO_PERMISSIONS

Change the permissions.

gnomevfs.SET_FILE_INFO_OWNER

Change the file's owner.

gnomevfs.SET_FILE_INFO_TIME

Change the file's time stamp(s).

gnomevfs Open Mode Constants

These options affect how files are opened.

gnomevfs.OPEN_NONE

gnomevfs.OPEN_READ

Open the file for reading.

gnomevfs.OPEN_WRITE

Open the file for writing.

gnomevfs.OPEN_RANDOM

Allow random access on the file.

gnomevfs.OPEN_TRUNCATE

Truncate the file.

gnomevfs Seek Constants

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

gnomevfs.SEEK_START

The start of the file.

gnomevfs.SEEK_CURRENT

The current position in the file.

gnomevfs.SEEK_END

The end of the file.

gnomevfs Monitor Type Constants

The type of resources that can be monitored.

gnomevfs.MONITOR_FILE

Monitor a file.

gnomevfs.MONITOR_DIRECTORY

Monitor a directory.

gnomevfs Monitor Events

Types of events that can be recieved from a monitor.

gnomevfs.MONITOR_EVENT_CHANGED

File data was changed.

gnomevfs.MONITOR_EVENT_DELETED

File was deleted.

gnomevfs.MONITOR_EVENT_STARTEXECUTING

gnomevfs.MONITOR_EVENT_STOPEXECUTING

gnomevfs.MONITOR_EVENT_CREATED

File was created.

gnomevfs.MONITOR_EVENT_METADATA_CHANGED

File's metadata was changed.