tango.io.vfs.ZipFolder

License:

BSD style: see license.txt

Version:

The Great Namechange: February 2008

Initial release: December 2007

Author:

Daniel Keep
class ZipSubFolder : VfsFolder, VfsSync
This class represents a folder in an archive. In addition to supporting the sync operation, you can also use the archive member to get a reference to the underlying ZipFolder instance.
const(char)[] name() [@property, final]
string toString() [override, final]
VfsFile file(const(char)[] path) [@property, final]
VfsFolderEntry folder(const(char)[] path) [@property, final]
VfsFolders self() [@property, final]
VfsFolders tree() [@property, final]
int opApply(scope int delegate(ref VfsFolder) dg) [final]
VfsFolder clear() [final]
bool writable() [@property, final]
VfsFolder close(bool commit = true)
Closes this folder object. If commit is true, then the folder is sync'ed before being closed.
VfsFolder sync() [override]
This will flush any changes to the archive to disk. Note that this applies to the entire archive, not just this folder and its contents.
void verify(VfsFolder folder, bool mounting) [final]
ZipFolder archive() [@property, final]
Returns a reference to the underlying ZipFolder instance.
class ZipFolder : ZipSubFolder
ZipFolder serves as the root object for all Zip archives in the VFS. Presently, it can only open archives on the local filesystem.
this(const(char)[] path, bool readonly = false)
Opens an archive from the local filesystem. If the readonly argument is specified as true, then modification of the archive will be explicitly disallowed.
VfsFolder close(bool commit = true) [override, final]
Closes the archive, and releases all internal resources. If the commit argument is true (the default), then changes to the archive will be flushed out to disk. If false, changes will simply be discarded.
VfsFolder sync() [override, final]
Flushes all changes to the archive out to disk.
bool readonly() [@property, final]
Indicates whether the archive was opened for read-only access. Note that in addition to the readonly constructor flag, this is also influenced by whether the file itself is read-only or not.
const(char)[] path() [@property, final]
const(char)[] path(const(char)[] v) [@property, final]
Allows you to read and specify the path to the archive. The effect of setting this is to change where the archive will be written to when flushed to disk.
class ZipFile : VfsFile
This class represents a file within an archive.
const(char)[] name() [@property, final]
string toString() [override, final]
bool exists() [@property, final]
ulong size() [@property, final]
VfsFile copy(VfsFile source) [final]
VfsFile move(VfsFile source) [final]
VfsFile create() [final]
VfsFile create(InputStream stream) [final]
VfsFile remove() [final]
InputStream input() [@property, final]
OutputStream output() [@property, final]
VfsFile dup() [@property, final]
Time modified() [@property, final]