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.

chmod
void chmod(const(char)[] path, mode_t mode)

Changes the mode of a path.

chown
void chown(const(char)[] path, uid_t uid, gid_t gid)

Changes ownership of a file.

exception
void exception(Exception e)
Undocumented in source. Be warned that the author may not have intended to support it.
getattr
void getattr(const(char)[] path, stat_t stat)

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

initialize
void initialize()

Runs on filesystem creation

mkdir
void mkdir(const(char)[] path, uint mode)
Undocumented in source. Be warned that the author may not have intended to support it.
mknod
void mknod(const(char)[] path, int mod, ulong dev)
Undocumented in source. Be warned that the author may not have intended to support it.
open
void open(const(char)[] path)
Undocumented in source. Be warned that the author may not have intended to support it.
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
size_t readlink(const(char)[] path, ubyte[] buf)

Reads the link identified by path into the given buffer.

release
void release(const(char)[] path)
Undocumented in source. Be warned that the author may not have intended to support it.
rename
void rename(const(char)[] orig, const(char)[] dest)
Undocumented in source. Be warned that the author may not have intended to support it.
rmdir
void rmdir(const(char)[] path)
Undocumented in source. Be warned that the author may not have intended to support it.
symlink
void symlink(const(char)[] target, const(char)[] path)

Creates a symlink.

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

Truncate a file to the given length.

unlink
void unlink(const(char)[] path)
Undocumented in source. Be warned that the author may not have intended to support it.
utime
void utime(const(char)[] path, utimbuf* time)

Sets access and modification time.

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

Write the given data to the file.

Meta