VfsHost

Members

Functions

dismount
VfsHost dismount(VfsFolder folder)

Unhook a child folder.

map
VfsHost map(VfsFile target, istring name)

Add a symbolic link to another file. These are referenced by file() alone, and do not show up in tree traversals.

map
VfsHost map(VfsFolderEntry target, istring name)

Add a symbolic link to another folder. These are referenced by folder() alone, and do not show up in tree traversals.

mount
VfsHost mount(VfsFolder folder, istring name)

Add a child folder. The child cannot 'overlap' with others in the tree of the same type. Circular references across a tree of virtual folders are detected and trapped.

mount
VfsHost mount(VfsFolders group)

Add a set of child folders. The children cannot 'overlap' with others in the tree of the same type. Circular references are detected and trapped.

Inherited Members

From VfsFolder

name
istring name()

Return a short name.

toString
istring toString()

Return a long name.

file
VfsFile file(istring path)

Return a contained file representation.

folder
VfsFolderEntry folder(istring path)

Return a contained folder representation.

self
VfsFolders self()

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

tree
VfsFolders tree()

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()

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.

Meta