(path)
| 9 | logger = logging.getLogger(__name__) |
| 10 | |
| 11 | def read_general(path) -> Union[str, BytesIO]: |
| 12 | if "s3://" in path: |
| 13 | init_ceph_client_if_needed() |
| 14 | file_bytes = BytesIO(client.get(path)) |
| 15 | return file_bytes |
| 16 | else: |
| 17 | return path |
| 18 | |
| 19 | def init_ceph_client_if_needed(): |
| 20 | global client |
no test coverage detected