class_docstr: Access a remote Hugging Face Hub repository as if were a local file system.
  
  Args:
      token (`str`, *optional*):
          Authentication token, obtained with [`HfApi.login`] method. Will default to the stored token.
  
  Usage:
  
  ```python
  >>> from huggingface_hub import HfFileSystem
  
  >>> fs = HfFileSystem()
  
  >>> # List files
  >>> fs.glob("my-username/my-model/*.bin")
  ['my-username/my-model/pytorch_model.bin']
  >>> fs.ls("datasets/my-username/my-dataset", detail=False)
  ['datasets/my-username/my-dataset/.gitattributes', 'datasets/my-username/my-dataset/README.md', 'datasets/my-username/my-dataset/data.json']
  
  >>> # Read/write files
  >>> with fs.open("my-username/my-model/pytorch_model.bin") as f:
  ...     data = f.read()
  >>> with fs.open("my-username/my-model/pytorch_model.bin", "wb") as f:
  ...     f.write(data)
  ```
class_docstr_tok: ["Access","a","remote","Hugging","Face","Hub","repository","as","if","were","a","local","file","system",".","Args",":","token","(","`","str","`",",","*","optional","*",")",":","Authentication","token",",","obtained","with","[","`","HfApi.login","`","]","method",".","Will","default","to","the","stored","token",".","Usage",":","``","`","python",">",">",">","from","huggingface_hub","import","HfFileSystem",">",">",">","fs","=","HfFileSystem","(",")",">",">",">","#","List","files",">",">",">","fs.glob","(","``","my-username\/my-model\/","*",".bin","''",")","[","'my-username\/my-model\/pytorch_model.bin","'","]",">",">",">","fs.ls","(","``","datasets\/my-username\/my-dataset","''",",","detail=False",")","[","'datasets\/my-username\/my-dataset\/.gitattributes","'",",","'datasets\/my-username\/my-dataset\/README.md","'",",","'datasets\/my-username\/my-dataset\/data.json","'","]",">",">",">","#","Read\/write","files",">",">",">","with","fs.open","(","``","my-username\/my-model\/pytorch_model.bin","''",")","as","f",":","...","data","=","f.read","(",")",">",">",">","with","fs.open","(","``","my-username\/my-model\/pytorch_model.bin","''",",","``","wb","''",")","as","f",":","...","f.write","(","data",")","``","`"]
docstr: Is this entry file-like?
docstr_tok: ["Is","this","entry","file-like","?"]
code: def isfile(self, path):
      """Is this entry file-like?"""
      try:
          return self.info(path, expand_info=False)["type"] == "file"
      except:  # noqa: E722
          return False
  
imports: import copy
  import os
  import re
  import tempfile
  from collections import deque
  from dataclasses import dataclass, field
  from datetime import datetime
  from itertools import chain
  from typing import Any, Dict, List, NoReturn, Optional, Tuple, Union
  from urllib.parse import quote, unquote
  import fsspec
  from ._commit_api import CommitOperationCopy, CommitOperationDelete
  from .constants import DEFAULT_REVISION, ENDPOINT, REPO_TYPE_MODEL, REPO_TYPES_MAPPING, REPO_TYPES_URL_PREFIXES
  from .file_download import hf_hub_url
  from .hf_api import HfApi, LastCommitInfo, RepoFile
  from .utils import EntryNotFoundError, HFValidationError, RepositoryNotFoundError, RevisionNotFoundError, hf_raise_for_status, http_backoff
label_desc: Use image node_id 17 for calling the HfFileSystem obj's underlying member method code with example usage: obj.isfile(path) and returns: unknown, False