VFS

Abstract VFS driver base class.

Members

Functions

copy
void copy(string from, string to)

Copy file from one location to another (same VFS driver).

exists
bool exists(string path)

Check if file/directory exists at location.

listDir
string[] listDir(string path)

Enumerate directory entries.

mdFile
ubyte[16] mdFile(string path)

Get MD5 digest of file at location.

mkdir
void mkdir(string path)

Create an empty directory.

mkdirRecurse
void mkdirRecurse(string path)

Create directory (and parents as necessary) at location, if it does not exist.

read
void[] read(string path)

Read entire file at given location.

remove
void remove(string path)

Delete file at location.

rename
void rename(string from, string to)

Rename file at location. Clobber destination, if it exists.

rmdirRecurse
void rmdirRecurse(string path)

Remove a directory and all its contents recursively.

symlink
void symlink(string from, string to)

Create a symbolic link.

write
void write(string path, const(void)[] data)

Write entire file at given location (overwrite if exists).

Meta