VfsHost

Members

Functions

dismount
VfsHost dismount(VfsFolder folder)

Unhook a child folder

map
VfsHost map(VfsFile target, const(char)[] 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, const(char)[] 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, const(char)[] 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
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

Meta