Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions analyzer/windows/modules/packages/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def start(self, path):

for file in files:
file_path = os.path.join(r, file)
if file_path == path or file_path in extracted_files:
if file_path in extracted_files:
continue

extracted_files.add(file_path)
Expand Down Expand Up @@ -157,12 +157,12 @@ def start(self, path):
# We have the file names according to 7ZIP output (file_names)
# We have the file names that were actually extracted (files at root)
# If these values are different, replace all
log.warning("Extracted archives:%s", extracted_archives)
log.debug("Extracted archives:%s", extracted_archives)
files_at_root = [
os.path.relpath(os.path.join(r, f), root)
os.path.relpath(p, root)
for r, _, files in os.walk(root)
for f in files
if os.path.join(r, f) != path and os.path.join(r, f) not in extracted_archives
if (p := os.path.join(r, f)) not in extracted_archives
]
log.debug(files_at_root)
file_names = files_at_root
Expand Down
Loading