guess file type in python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mark

    #1

    guess file type in python

    Is there any way to guess the file type using python?
    thanks
    mark

    For example in unix:

    file code.py
    code.py: a python script text executable

    file Eccentric.gif
    Eccentric.gif: GIF image data, version 89a, 237 x 277
Working...