class_docstr: This filesystem enables to easily move files from and to the shared storage.
class_docstr_tok: ["This","filesystem","enables","to","easily","move","files","from","and","to","the","shared","storage","."]
code: def isfile(self, path: str) -> bool:
      if not path.startswith("/"):
          raise Exception(
              f"The provided destination {path} needs to start with `/`."
          )
  
      path = Path(os.path.join(self._root, path[1:])).resolve()
      return self._fs.isfile(path)
  
file_path: pytorch-lightning/src/lightning/app/storage/filesystem.py
imports: import os
  import shutil
  from pathlib import Path
  from typing import Callable, List
  from fsspec.implementations.local import LocalFileSystem
  from lightning.app.storage.copier import _copy_files
  from lightning.app.storage.path import _filesystem, _shared_storage_path
label_desc: Use image node_id 7 for calling the FileSystem obj's underlying member method code with example usage: obj.isfile(path) and returns: self