Operations

An object oriented wrapper around fuse_operations.

Members

Functions

access
bool access(const(char)[] path, int mode)

Determine if the user has access to the given path.

getattr
void getattr(const(char)[] path, ref stat_t stat)

Called to get a stat(2) structure for a path.

initialize
void initialize()

Runs on filesystem creation

read
ulong read(const(char)[] path, ubyte[] buf, ulong offset)

Read path into the provided buffer beginning at offset.

readdir
string[] readdir(const(char)[] path)

Returns a list of files and directory names in the given folder. Note that you have to return . and ..

readlink
ulong readlink(const(char)[] path, ubyte[] buf)

Reads the link identified by path into the given buffer.

truncate
void truncate(const(char)[] path, ulong length)

Truncate a file to the given length.

write
int write(const(char)[] path, in ubyte[] data, ulong offset)

Write the given data to the file.

Meta