rql_download.fuse.fuse_mount.FuseRset¶
-
class
rql_download.fuse.fuse_mount.
FuseRset
(instance, login)[source]¶ Class that create a mount point containing virtual path representing the CWSearch entities of a cw user.
Methods
__init__
(instance, login)Initilize the FuseRset class. access
(path, amode)chmod
(path, mode)chown
(path, uid, gid)create
(path, mode[, fi])destroy
(path)Called on filesystem destruction. flush
(path, fh)File-class version of ‘flush”. fsync
(path, datasync, fh)fsyncdir
(path, datasync, fh)getattr
(path[, fh])File-class version of ‘getattr’. getxattr
(path, name[, position])init
(path)Called on filesystem initialization. link
(target, source)listxattr
(path)mkdir
(path, mode)mknod
(path, mode, dev)open
(path, flags)File-class version of ‘open’. opendir
(path)This method is useless here because the path is always given to readdir(). read
(path, length, offset, fh)File-class version of ‘read’. readdir
(path, fh)List the content of a directory. readlink
(path)release
(path, fh)File-class version of ‘release’. releasedir
(path, fh)As for opendir, we do not use releasedir. removexattr
(path, name)rename
(old, new)rmdir
(path)setxattr
(path, name, value, options[, position])statfs
(path)suicide
()unmount Fuse and suicide symlink
(target, source)truncate
(path, length[, fh])unlink
(path)update
()Method that create a virtual directory from a user CWSearch entities results. utimens
(path[, times])write
(path, data, offset, fh)Attributes
bmap
lock
-
__module__
= 'rql_download.fuse.fuse_mount'¶
-
getattr
(path, fh=None)[source]¶ File-class version of ‘getattr’. Retrieves information about a file (the “stat” of a file).
Return a dict with stats on the given virtual path.
Note
when the stat method is called on the ‘/.isalive’ fake folder, the method return a fake folder stat but do not raise an exception. This in turns unables us to check if the fuse process is running.
Note
when the stat method is called on the ‘/.update’ fake folder, the virtual direcotry is recreated and the process may not be available during this operation.
Note
when the stat method is called on the ‘/.kill’ fake folder, the fuse repository is unmounted and the process terminates by raising an exception.
Parameters: path: str (mandatory) :
a virtual path
-
opendir
(path)[source]¶ This method is useless here because the path is always given to readdir(). Always return 0.
-
read
(path, length, offset, fh)[source]¶ File-class version of ‘read’. Get all or part of the contents of a file.
-
readdir
(path, fh)[source]¶ List the content of a directory.
Parameters: path: str (mandatory) :
a virtual path
-