handle capital archive extension for #13

pull/19/head
deadc0de6 3 years ago
parent 7e1336c57f
commit a596f39ac2

@ -27,7 +27,7 @@ class Decomp:
'tar.bz2': self._tar,
'zip': self._zip}
def get_format(self):
def get_formats(self):
'''return list of supported extensions'''
return list(self.ext.keys())

@ -204,7 +204,7 @@ class Noder:
size=st.st_size, md5=md5, maccess=maccess)
if self.arc:
ext = os.path.splitext(path)[1][1:]
if ext in self.decomp.get_format():
if ext.lower() in self.decomp.get_formats():
names = self.decomp.get_names(path)
self.list_to_tree(n, names)
return n

Loading…
Cancel
Save