Home | Trees | Index | Help |
|
---|
Package glass :: Package vfs :: Module Zip :: Class Zip |
|
This is a vfs class for zip files.
The following attributes are used:
Known bugs:
If you think of a zip file as a filesystem, there is no path to represent the root of the filesystem as a directory. It'd be nice to add code to treat "" as the root of the filesystem.
Method Summary | |
---|---|
Set the name of the zip file. | |
Delegate methods. | |
__repr__(self)
| |
Test whether a path exists. | |
Test whether a path is a directory. | |
Test whether a path is a regular file. | |
Open a file. | |
Return a stat for the given path. | |
Translate path to the local filename syntax. |
Method Details |
---|
__init__(self,
root)
|
__getattr__(self,
attr)
|
exists(self, path)Test whether a path exists. |
isdir(self, path)Test whether a path is a directory. |
isfile(self, path)Test whether a path is a regular file. |
open(self, name, mode_ignored='', buffering_ignored='')Open a file. |
stat(self, path)Return a stat for the given path. The stat that I'm capable of returning is very stripped. It only has the two attributes st_mtime and st_size. |
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. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jan 1 16:36:34 2007 | http://epydoc.sf.net |