code: def ls(self, path, detail=True, *args, **kwargs):
      path = posixpath.join(
          self.local_root_dir, self._strip_protocol(path)
      )
      out = self._fs.ls(path, detail=detail, *args, **kwargs)
      if detail:
          return [
              {**info, "name": info["name"][len(self.local_root_dir) :]}
              for info in out
          ]
      else:
          return [name[len(self.local_root_dir) :] for name in out]
  
imports: import posixpath
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  from fsspec.implementations.local import AbstractFileSystem, LocalFileSystem, stringify_path
  from fsspec.registry import _registry
label_desc: Use image node_id 5 for calling the MockFileSystem obj's underlying member method code with example usage: obj.ls(path, detail) and returns: unknown, unknown