Archives and magic bytes

Chris Rebert (cybercobra) cvrebert at
Thu Mar 24 04:41:12 CET 2005

Have you tried the tarfile or zipfile modules? You might need to ugrade
your python if you don't have them. They look pretty easy and should
make this a snap.
You can grab the output from the *nix "file" command using the new
subprocess module.
Good Luck
- Chris
All your code are belong to Python!

More information about the Python-list mailing list