code: def list_directory(self, path):
          r
          _complain_ifclosed(self.closed)
          return self.fs.list_directory(path)
docs: r"""
          Get list of files and directories for ``path``\ .
  
          :type path: str
          :param path: the path of the directory
          :rtype: list
          :return: list of files and directories in ``path``
          :raises: :exc:`~exceptions.IOError`