The Official GNOME 2 Developers Guide

GnomeVFS is a library and module set that provides virtual file systems for GNOME applications. Why you should use a virtual, abstract file system and not your system's native file system? In addition to the usual justification of abstraction (portability), GnomeVFS extends the file system beyond your local disk. For example, you can access archives and web servers with the same interface as your local file system.

GnomeVFS also offers a number of practical utility functions, including an entire subsystem for asynchronous access (see Section 8.5).

8.1 Transparency with URIs

The two governing principles behind GnomeVFS are

Modules support underlying media types, so you can easily outfit GnomeVFS with new access capabilities. A system with gnome-vfs and gnome-vfs-extras already contains modules for these formats:

To construct a URI, start with one of the preceding identifiers followed by a colon (:). If you need a remote machine name , username, and/or password, add two slashes ( // ) and the appropriate information (for a local file, just use two slashes). Then, to specify the filename, add the absolute path .

GnomeVFS allows nested access types. To specify an additional access type type on a file, add #type to the URI. If your target happens to be an archive (or similar), you can append another path component. Here are some examples:

Категории