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(istring 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.

file
VfsFile file(istring name)

Return a contained file representation.

folder
VfsFolderEntry folder(istring path)

Return a contained folder representation.

name
istring name()

Return a short name.

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

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

self
VfsFolders self()

Returns content information about this folder.

toString
istring toString()

Return a long name.

tree
VfsFolders tree()

Returns a subtree of folders matching the given 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

writable
bool writable()

Is folder writable?

Meta