in collection_manager/collection_manager/entities/Collection.py [0:0]
def storage_type(self):
if self.store_type == 'zarr':
return CollectionStorageType.ZARR
if urlparse(self.path).scheme == 's3':
return CollectionStorageType.S3
elif urlparse(self.path).scheme in {'http', 'https'}:
return CollectionStorageType.REMOTE
else:
return CollectionStorageType.LOCAL