ZipFolder

ZipFolder serves as the root object for all Zip archives in the VFS. Presently, it can only open archives on the local filesystem.

Constructors

this
this(const(char)[] path, bool readonly)

Opens an archive from the local filesystem. If the readonly argument is specified as true, then modification of the archive will be explicitly disallowed.

Members

Functions

close
VfsFolder close(bool commit)

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.

sync
VfsFolder sync()

Flushes all changes to the archive out to disk.

Properties

path
const(char)[] path [@property getter]

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.

path
const(char)[] path [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
readonly
bool readonly [@property getter]

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.

Inherited Members

From ZipSubFolder

name
const(char)[] name [@property getter]
toString
string toString()
file
const(char)[] file [@property setter]
folder
const(char)[] folder [@property setter]
self
VfsFolders self [@property getter]
tree
VfsFolders tree [@property getter]
opApply
int opApply(int delegate(ref VfsFolder) dg)
clear
VfsFolder clear()
writable
bool writable [@property getter]
close
VfsFolder close(bool commit)

Closes this folder object. If commit is true, then the folder is sync'ed before being closed.

sync
VfsFolder sync()

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.

verify
void verify(VfsFolder folder, bool mounting)
archive
ZipFolder archive [@property getter]

Returns a reference to the underlying ZipFolder instance.

Meta