fix archive bug #13

pull/19/head
deadc0de6 3 years ago
parent 03f82f1514
commit 9f6f1bb3a4

@ -33,7 +33,7 @@ class Decomp:
def get_names(self, path):
'''get tree of compressed archive'''
ext = os.path.splitext(path)[1][1:]
ext = os.path.splitext(path)[1][1:].lower()
if ext in list(self.ext.keys()):
return self.ext[ext](path)
return None

@ -205,8 +205,11 @@ class Noder:
if self.arc:
ext = os.path.splitext(path)[1][1:]
if ext.lower() in self.decomp.get_formats():
self._debug('{} is an archive'.format(path))
names = self.decomp.get_names(path)
self.list_to_tree(n, names)
else:
self._debug('{} is NOT an archive'.format(path))
return n
def dir_node(self, name, path, parent, storagepath):

Loading…
Cancel
Save