Method Fuse.Operations()->open()

class Fuse.Operations

Method open

int|mixed open(string path, int mode)

Description

Open path. mode is as for the system call open. (mode & O_ACCMODE) is one of O_RDONLY, O_WRONLY or O_RDWR. The mode can also contain other flags, most notably O_APPEND.

Note

You do not really have to implement this function. It's useful to start prefetch and to cache open files, and check that the user has permission to read/write the file.

Returns

Returns 0 or a non-integer value on success, and an errno on failure. The returned value will be passed as the open_handle to several functions.

See also

creat(), release()