Package glass :: Package vfs :: Module Standard :: Class Standard
[show private | hide private]
[frames | no frames]

Class Standard


This is a vfs class for the normal filesystem.

It's mostly a wrapper for os.path.

The following attributes are used:

root
This is the root of the filesystem.

Method Summary
  __init__(self, root)
Set the root of the filesystem.
  __getattr__(self, attr)
Delegate methods.
  __repr__(self)
  translate_path(self, path)
Translate path to the local filename syntax.

Method Details

__init__(self, root)
(Constructor)

Set the root of the filesystem.

If this isn't a directory, raise a ValueError.

__getattr__(self, attr)
(Qualification operator)

Delegate methods.

The following methods are delegated:

isdir, exists, join, splitext, isfile, splitdrive, split, open, stat, curdir, pardir

translate_path(self, path)

Translate path to the local filename syntax.

Actually, path is already in the local filename syntax, but this is your last chance to do anything else, such as making it an absolute path, etc.


Generated by Epydoc 2.1 on Mon Jan 1 16:36:34 2007 http://epydoc.sf.net