class_docstr: Handler for fsspec-based Python filesystems.
  
  https://filesystem-spec.readthedocs.io/en/latest/index.html
  
  Parameters
  ----------
  fs : FSSpec-compliant filesystem instance
  
  Examples
  --------
  >>> PyFileSystem(FSSpecHandler(fsspec_fs)) # doctest: +SKIP
code: def _create_file_info(path, info):
      size = info["size"]
      if info["type"] == "file":
          ftype = FileType.File
      elif info["type"] == "directory":
          ftype = FileType.Directory
          # some fsspec filesystems include a file size for directories
          size = None
      else:
          ftype = FileType.Unknown
      return FileInfo(
          path, ftype, size=size, mtime=info.get("mtime", None)
      )
  
imports: from pyarrow.util import _is_path_like, _stringify_path
  from pyarrow._fs import FileSelector, FileType, FileInfo, FileSystem, LocalFileSystem, SubTreeFileSystem, _MockFileSystem, FileSystemHandler, PyFileSystem, _copy_files, _copy_files_selector
label_desc: Use image node_id 6 for calling the FSSpecHandler obj's underlying member method code with example usage: obj._create_file_info(path, info) and returns: FileInfo