(self, relative_path: str)
| 83 | self.repo_files = set(HfApi().list_repo_files(repo_or_path)) |
| 84 | |
| 85 | def exists(self, relative_path: str) -> bool: |
| 86 | relative_path = relative_path.replace("\\", "/") |
| 87 | if self.local_root is not None: |
| 88 | return (self.local_root / relative_path).is_file() |
| 89 | return relative_path in self.repo_files |
| 90 | |
| 91 | def fetch(self, relative_path: str) -> Path: |
| 92 | relative_path = relative_path.replace("\\", "/") |
no outgoing calls