[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pythonmac-sig
Subject:    RE: [Pythonmac-SIG] magic file info
From:       <Henning.Ramm () mediapro-gmbh ! de>
Date:       2005-02-22 9:38:14
Message-ID: F92274058556DE42B94B148EEFB9183949E618 () exchange-03 ! suedkurier ! de
[Download RAW message or body]

>/usr/bin/magic determines the file type heuristically by parsing 
>/usr/share/file/magic and then reading a couple bytes out of the given 
>file.
>
>This appears to be a direct Python translation of the file command, 
>with an embedded copy of a magic table:
>http://www.demonseed.net/~jp/code/magic.py

Thank you! I could have written a "magic" parser myself, but it's better if I don't need to. ;-)
I only thought there would be a standard module that I overlooked.

Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic