In linux, we have a utility called “file”, which helps us to determine the identification of a file. Is there any python module that can do the same job?
I don't prefer to use subprocess.Popen(['file', 'blah.blah'])
,
because it is platform dependent. For instance, windows do not have “file” (although it can be downloaded).
magic
Don't forget the DLL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With