def set_working_directory(self, path):
_complain_ifclosed(self.closed)<EOL>return self.fs.set_working_directory(path)<EOL>
r"""
        Set the working directory to ``path``\ . All relative paths will
        be resolved relative to it.

        :type path: str
        :param path: the path of the directory
        :raises: :exc:`~exceptions.IOError`