Skip to content

Commit

Permalink
path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
hannob committed Jul 26, 2024
1 parent 09626e2 commit 102cd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyfinder
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if __name__ == "__main__":
for path in args.input:
for root, _, files in os.walk(path):
for fn in files:
with open(root + fn, "rb") as f:
with open(f"{root}/{fn}", "rb") as f:
content = f.read()
keys = findkeys(content)
for k in keys:
Expand Down

0 comments on commit 102cd69

Please sign in to comment.