Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of Pathlib (suggestion) #24

Open
pxcluster opened this issue Jun 16, 2021 · 0 comments
Open

Support of Pathlib (suggestion) #24

pxcluster opened this issue Jun 16, 2021 · 0 comments

Comments

@pxcluster
Copy link

pxcluster commented Jun 16, 2021

Hi,

Since current practice suggest to use the pathlib module instead of strait str/path/symlink/etc. I suggest to simply add a str() casting on 'filename' symbols in functions expecting a filename (like id_filename()). This would make filemagic transparent when using pathlib (Path('/tmp/myfile')), and avoid misleading error messages yield by ctypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant