tango.io.vfs.FileFolder

License:

BSD style: see license.txt

Version:

Oct 2007: Initial version

Author:

Kris
class FileFolder : VfsFolder
Represents a physical folder in a file system. Use one of these to address specific paths (sub-trees) within the file system.
this(const(char)[] path, bool create = false)
Create a file folder with the given path.
Option 'create' will create the path when set true, or reference an existing path otherwise
const(char)[] name() [@property, final]
Return a short name
string toString() [override, final]
Return a long name
void verify(VfsFolder folder, bool mounting) [final]
A folder is being added or removed from the hierarchy. Use this to test for validity (or whatever) and throw exceptions as necessary
Here we test for folder overlap, and bail-out when found.
VfsFile file(const(char)[] name) [@property, final]
Return a contained file representation
VfsFolderEntry folder(const(char)[] path) [@property, final]
Return a contained folder representation
VfsFolder clear() [final]
Remove the folder subtree. Use with care!
bool writable() [@property, final]
Is folder writable?
VfsFolders self() [@property, final]
Returns content information about this folder
VfsFolders tree() [@property, final]
Returns a subtree of folders matching the given name
int opApply(scope int delegate(ref VfsFolder) dg) [final]
Iterate over the set of immediate child folders. This is useful for reflecting the hierarchy
VfsFolder close(bool commit = true)
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
class FileGroup : VfsFiles
Represents a group of files (need this declared here to avoid a bunch of bizarre compiler warnings)
this(FolderGroup host, VfsFilter filter)
int opApply(scope int delegate(ref VfsFile) dg) [final]
Iterate over the set of contained VfsFile instances
size_t files() [@property, final]
Return the total number of entries
ulong bytes() [@property, final]
Return the total size of all files