@_pathdec<EOL><INDENT>def mkdir(self, tid, mode):<DEDENT>
pt = self.PathType.get(tid)<EOL>if pt is self.PathType.invalid or pt is self.PathType.file:<EOL><INDENT>raise FuseOSError(errno.EPERM)<EOL><DEDENT>if self.__exists(tid):<EOL><INDENT>raise FuseOSError(errno.EEXIST)<EOL><DEDENT>try:<EOL><INDENT>dir_ent = YTActions(tid[<NUM_LIT:0>])<EOL>dir_ent.updateResults()<EOL><DEDENT>except ConnectionError:<EOL><INDENT>raise FuseOSError(errno.ENETDOWN)<EOL><DEDENT>self.searches[tid[<NUM_LIT:0>]] = dir_ent <EOL>return <NUM_LIT:0><EOL>
Directory creation. Search is performed.

Parameters
----------
tid : str
    Path to file. Original `path` argument is converted to tuple identifier by ``_pathdec`` decorator.
mode : int
    Ignored.