Skip to content

Commit fc4e9d0

Browse files
committed
Use string path with libmagic instead of Path
1 parent 0f6a47a commit fc4e9d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binexport/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Bcolors:
3939

4040
def recursive_file_iter(p: Path) -> Generator[Path, None, None]:
4141
if p.is_file():
42-
mime_type = magic.from_file(p, mime=True)
42+
mime_type = magic.from_file(str(p), mime=True)
4343
if mime_type not in BINARY_FORMAT and p.suffix not in EXTENSIONS_WHITELIST.get(
4444
mime_type, []
4545
):

0 commit comments

Comments
 (0)