FSDir

Directory in the physical filesystem.

Note that paths behave as in the backend filesystem.

For example, if you are working with Windows, paths are not case sensitive.

Constructors

this
this(string name, string physicalPath, Flag!"writable" writable = Yes.writable)

Construct an FSDir.

Inherited Members

From VFSDir

name
string name [@property getter]

Get the name of this directory.

path
string path [@property getter]

Get full path of this directory in the VFS.

writable
bool writable [@property getter]

Is it possible to write to the directory?

exists
bool exists [@property getter]

Does the directory exist?

file
VFSFile file(string path)

Get file with specified _path in the directory.

dir
VFSDir dir(string path)

Get a subdirectory with specified _path in the directory.

files
VFSFiles files(Flag!"deep" deep = No.deep, string glob = null)

Get a range of files in the directory.

dirs
VFSDirs dirs(Flag!"deep" deep = No.deep, string glob = null)

Get a range of subdirectories.

create
void create()

Create the directory if it does not exist (otherwise do nothing).

remove
void remove()

Remove the directory if it exists (otherwise do nothing).

dirsRange
VFSDirs dirsRange(VFSDirs.Items dirs)

Construct a range from a set of directories.

filesRange
VFSFiles filesRange(VFSFiles.Items files)

Construct a range from a set of _files.

composePath
string composePath(const VFSDir child)

Compose path for a _child directory. Used e.g. to allow StackDir to set children's paths.

create_
void create_()

Implementation of create(). Caller contract guarantees that the directory is writable.

copyWithoutParent
VFSDir copyWithoutParent()

Return a copy of this VFSDir without a parent. Used for mounting.

getCopyWithoutParent
VFSDir getCopyWithoutParent(VFSDir dir)

Access for derived classes to call copyWithoutParent() of other instances.

Meta