Check out the new USENIX Web site. next up previous
Next: File transfer support Up: Unix file system extensions Previous: Asynchronous API example

File attributes

GNOME VFS also provides a GnomeVFSFileInfo object that works as an extension of struct stat in Unix. In addition to the standard attributes that struct stat provides, GnomeVFSFileInfo also gives access to:

As some kind of information might not be supported by certain plug-ins (for example, it is not possible to know the number of physical blocks occupied by a file via HTTP), GnomeVFSFileInfo provides a bitmask specifying which fields are actually valid and which are not.

GNOME VFS also provides a simple API for loading directory information in a progressive way, calling an asynchronous callback as data is copied into memory. This functionality is particularly useful for a file manager, as the directory view can be updated without blocking the user interface and thus giving the user effective visual feedback of what is going on, even with those slow back-ends for which reading a directory is an expensive operation (such as a tar file access method, that requires a sequential scan of the whole .tar file).


next up previous
Next: File transfer support Up: Unix file system extensions Previous: Asynchronous API example
Ettore Perazzoli 2000-04-26