Import std.compress.vfs
ZipSource
class
Public Class ZipSource Implements VfsSource
A zip's files as a source, by their names: each file's name is its path, with '/' (or '') between folders, and the folders are the ones its entries name or go through. An entry whose name goes above the zip's root, or has no names once its "."s and ".."s are taken out, isn't in it, so a zip can't reach past where it's mounted, and neither is a link. Of the entries a name has, the last is the file, as ZipReader.Read takes it. A read decompresses the file from the zip each time.
-
A source of the zip a ZipReader reads, which it keeps. Throws an IOError of INVALID_DATA when the zip's entries make one place a file and a folder too.
-
The bytes of the file at
pathin the zip, or Null when it has none there. Throws an IOError when the entry is broken, as ZipReader's ReadAt does. -
Whether
pathis a file or a folder in the zip, or Null when it's neither. -
The names in the folder at
pathin the zip, each with whether it's a file or a folder, or Null when there's no folder there.
Report an issue with this page or with FutureBlitz on GitHub.