(self, path: str, real_only: bool = False)
| 254 | return stat.S_ISDIR(st.st_mode) |
| 255 | |
| 256 | def exists(self, path: str, real_only: bool = False) -> bool: |
| 257 | st = self.stat_or_none(path) |
| 258 | if st is None: |
| 259 | return False |
| 260 | if real_only: |
| 261 | dirname = os.path.dirname(path) |
| 262 | return dirname not in self.fake_package_cache |
| 263 | return True |
| 264 | |
| 265 | def read(self, path: str) -> bytes: |
| 266 | if path in self.read_cache: |