ZipSubFolder

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.

Members

Functions

clear
VfsFolder clear()
close
VfsFolder close(bool commit)

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

opApply
int opApply(int delegate(ref VfsFolder) dg)
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.

toString
string toString()
verify
void verify(VfsFolder folder, bool mounting)

Properties

archive
ZipFolder archive [@property getter]

Returns a reference to the underlying ZipFolder instance.

file
const(char)[] file [@property setter]
folder
const(char)[] folder [@property setter]
name
const(char)[] name [@property getter]
self
VfsFolders self [@property getter]
tree
VfsFolders tree [@property getter]
writable
bool writable [@property getter]

Inherited Members

From VfsFolder

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

Return a short name

toString
string toString()

Return a long name

file
const(char)[] file [@property setter]

Return a contained file representation

folder
const(char)[] folder [@property setter]

Return a contained folder representation

self
VfsFolders self [@property getter]

Returns a folder set containing only this one. Statistics are inclusive of entries within this folder only

tree
VfsFolders tree [@property getter]

Returns a subtree of folders. Statistics are inclusive of files within this folder and all others within the tree

opApply
int opApply(int delegate(ref VfsFolder) dg)

Iterate over the set of immediate child folders. This is useful for reflecting the hierarchy

clear
VfsFolder clear()

Clear all content from this folder and subordinates

writable
bool writable [@property getter]

Is folder writable?

close
VfsFolder close(bool commit)

Close and/or synchronize changes made to this folder. Each driver should take advantage of this as appropriate, perhaps combining multiple files together, or possibly copying to a remote location

verify
void verify(VfsFolder folder, bool mounting)

A folder is being added or removed from the hierarchy. Use this to test for validity (or whatever) and throw exceptions as necessary

From VfsSync

sync
VfsFolder sync()

Meta