@_pathdec<EOL><INDENT>def write(self, tid, data, offset, fh):<DEDENT>
if tid[<NUM_LIT:1>] == "<STR_LIT>":<EOL><INDENT>d = True<EOL><DEDENT>elif tid[<NUM_LIT:1>] == "<STR_LIT>":<EOL><INDENT>d = False<EOL><DEDENT>else:<EOL><INDENT>raise FuseOSError(errno.EPERM)<EOL><DEDENT>try:<EOL><INDENT>self.searches[tid[<NUM_LIT:0>]].updateResults(d)<EOL><DEDENT>except KeyError:<EOL><INDENT>raise FuseOSError(errno.EINVAL) <EOL><DEDENT>except ConnectionError:<EOL><INDENT>raise FuseOSError(errno.ENETDOWN)<EOL><DEDENT>return len(data)<EOL>
Write operation. Applicable only for control files - updateResults is called.

Parameters
----------
tid : str
    Path to file. Original `path` argument is converted to tuple identifier by ``_pathdec`` decorator.
data : bytes
    Ignored.
offset : int
    Ignored.
fh : int
    File descriptor.

Returns
-------
int
    Length of data written.