in src/s3_util.py [0:0]
def _get_bucketname_key(uripath):
assert uripath.startswith("s3://")
path_without_scheme = uripath[5:]
bucket_end_index = path_without_scheme.find("/")
bucket_name = path_without_scheme
key = "/"
if bucket_end_index > -1:
bucket_name = path_without_scheme[0:bucket_end_index]
key = path_without_scheme[bucket_end_index + 1:]
return bucket_name, key