Merge pull request #53 from yunzheng/main

Don't resolve() Path objects so relative scans paths show up relative
This commit is contained in:
yunzheng
2021-12-19 15:08:42 +01:00
committed by GitHub

View File

@@ -342,7 +342,7 @@ def main():
log.info(f"Found jar file: {p}")
stats["scanned"] += 1
for (zinfo, zfile, zpath, parents) in iter_jarfile(
p.resolve().open("rb"), parents=[p.resolve()]
p.open("rb"), parents=[p]
):
log.info(f"Found zfile: {zinfo} ({parents}")
with zfile.open(zinfo.filename) as zf: