twisted.python.zippath.ZipArchive(ZipPath)
class documentationtwisted.python.zippath
View Source
(View In Hierarchy)
I am a FilePath
-like
object which can wrap a zip archive as if it were a directory.
It works similarly to FilePath
in
bytes
and unicode
handling -- instantiating with a bytes
will return a "bytes mode" ZipArchive
,
and instantiating with a unicode
will return a "text mode" ZipArchive
.
Methods that return new ZipArchive
or ZipPath
instances will be in the mode of the argument to the creator method,
converting if required.
Method | __init__ | Create a ZipArchive, treating the archive at archivePathname as a zip file. |
Method | child | Create a ZipPath pointing at a path within the archive. |
Method | exists | Returns True if the underlying archive exists. |
Method | getAccessTime | Return the archive file's last access time. |
Method | getModificationTime | Return the archive file's modification time. |
Method | getStatusChangeTime | Return the archive file's status change time. |
Method | __repr__ | Undocumented |
Inherited from AbstractFilePath (via ZipPath):
Method | getContent | Retrieve the file-like object for this file path. |
Method | parents | Retrieve an iterator of all the ancestors of this path. |
Method | children | List the children of this path object. |
Method | walk | Yield myself, then each of my children, and each of those children's children in turn. |
Method | descendant | Retrieve a child or child's child of this path. |
Method | segmentsFrom | Return a list of segments between a child and its ancestor. |
Method | __hash__ | Hash the same as another FilePath with
the same path as mine. |
Method | getmtime | Deprecated. Use getModificationTime instead. |
Method | getatime | Deprecated. Use getAccessTime instead. |
Method | getctime | Deprecated. Use getStatusChangeTime instead. |
Inherited from AbstractFilePath (via ZipPath):
Method | getContent | Retrieve the file-like object for this file path. |
Method | parents | Retrieve an iterator of all the ancestors of this path. |
Method | children | List the children of this path object. |
Method | walk | Yield myself, then each of my children, and each of those children's children in turn. |
Method | descendant | Retrieve a child or child's child of this path. |
Method | segmentsFrom | Return a list of segments between a child and its ancestor. |
Method | __hash__ | Hash the same as another FilePath with
the same path as mine. |
Method | getmtime | Deprecated. Use getModificationTime instead. |
Method | getatime | Deprecated. Use getAccessTime instead. |
Method | getctime | Deprecated. Use getStatusChangeTime instead. |
Returns True
if the underlying archive exists.