@_pathdec<EOL><INDENT>def readdir(self, tid, fh):<DEDENT>
ret = []<EOL>pt = self.PathType.get(tid)<EOL>try:<EOL><INDENT>if pt is self.PathType.main:<EOL><INDENT>ret = list(self.searches)<EOL><DEDENT>elif pt is self.PathType.subdir:<EOL><INDENT>ret = list(self.searches[tid[<NUM_LIT:0>]])<EOL><DEDENT>elif pt is self.PathType.file:<EOL><INDENT>raise FuseOSError(errno.ENOTDIR)<EOL><DEDENT>else:<EOL><INDENT>raise FuseOSError(errno.ENOENT)<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise FuseOSError(errno.ENOENT)<EOL><DEDENT>return ['<STR_LIT:.>', '<STR_LIT:..>'] + ret<EOL>
Read directory contents. Lists visible elements of ``YTActions`` object.

Parameters
----------
tid : str
    Path to file. Original `path` argument is converted to tuple identifier by ``_pathdec`` decorator.
fh : int
    File descriptor. Ommited in the function body.

Returns
-------
list
    List of filenames, wich will be shown as directory content.