FileFolder

Represents a physical folder in a file system. Use one of these to address specific paths (sub-trees) within the file system.

Constructors

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

Create a file folder with the given path.

Members

Functions

clear
VfsFolder clear()

Remove the folder subtree. Use with care!

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

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

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

toString
string toString()

Return a long name

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

Properties

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

Return a contained file representation

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

Return a contained folder representation

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

Return a short name

self
VfsFolders self [@property getter]

Returns content information about this folder

tree
VfsFolders tree [@property getter]

Returns a subtree of folders matching the given name

writable
bool writable [@property getter]

Is folder writable?

Meta