Is there a python-equivalent of the unix “file” utility?

前端 未结 1 1204
不思量自难忘°
不思量自难忘° 2020-12-06 00:34

I want to have different behavior in a python script, depending on the type of file. I cannot use the filename extension as it may not be present or misleading. I could call

相关标签:
1条回答
  • 2020-12-06 01:21
    • python-magic
    • pymagic

    Probably others as well. "magic" is the magic keyword to search for. ;-)

    0 讨论(0)
提交回复
热议问题