fname, ext = path.splitext(fpath)
dumpext[fname].append(ext)
- ext_priority = ['.zst','.xz','.bz2']
+ ext_priority = ['.zst','.xz','.bz2','.gz']
for base, exts in dumpext.items():
ext = [ext for ext in ext_priority if ext in exts][0]
cmd = ["xzcat",'-dk', '-T 20',input_filename]
elif re.match(r'.*\.zst',input_filename):
cmd = ['zstd','-dck', input_filename]
+ elif re.match(r'.*\.gz',input_filename):
+ cmd = ['gzip','-dc', input_filename]
try:
input_file = Popen(cmd, stdout=PIPE).stdout
except NameError as e: