Skip to content

Commit

Permalink
Use string path with libmagic instead of Path
Browse files Browse the repository at this point in the history
  • Loading branch information
patacca committed Apr 25, 2024
1 parent 0f6a47a commit fc4e9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binexport/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Bcolors:

def recursive_file_iter(p: Path) -> Generator[Path, None, None]:
if p.is_file():
mime_type = magic.from_file(p, mime=True)
mime_type = magic.from_file(str(p), mime=True)
if mime_type not in BINARY_FORMAT and p.suffix not in EXTENSIONS_WHITELIST.get(
mime_type, []
):
Expand Down

0 comments on commit fc4e9d0

Please sign in to comment.