in src/chug/wds/tariterators.py [0:0]
def base_plus_ext(path):
"""Split off all file extensions.
Returns base, allext.
Args:
path: path with extensions
Returns:
path with all extensions removed
"""
match = re.match(BASE_RE, path)
if not match:
return None, None
return match.group(1), match.group(2)