def _pathdec(method):
@wraps(method) <EOL>def mod(self, path, *args):<EOL><INDENT>try:<EOL><INDENT>return method(self, self.__pathToTuple(path), *args)<EOL><DEDENT>except YTFS.PathConvertError:<EOL><INDENT>raise FuseOSError(errno.EINVAL)<EOL><DEDENT><DEDENT>return mod<EOL>
Decorator that replaces string `path` argument with its tuple identifier.

Parameters
----------
method : function
    Function/method to decorate.

Returns
-------
mod : function
    Function/method after decarotion.