(path: str)
| 229 | |
| 230 | @staticmethod |
| 231 | def parse_path(path: str) -> tuple[str, str | None, str | None]: |
| 232 | match = S3FileSystem.PATTERN_PATH.search(path) |
| 233 | if match: |
| 234 | return match.group("bucket"), match.group("key"), match.group("version_id") |
| 235 | raise ValueError(f"Invalid S3 path format {path}.") |
| 236 | |
| 237 | @staticmethod |
| 238 | def _directory_object(bucket: str, key: str | None, version_id: str | None = None) -> S3Object: |
no outgoing calls