On Sat, Sep 27, 2008 at 2:43 PM, A. Joseph <joefazee@gmail .comwrote:
Well, if you're on unix, you could run the 'file' command and check
its output using the 'subprocess' module, but it sounds like you're on
Windows...
Regards,
Chris
--
Follow the path of the Iguana...
What should I look for in a file to determine whether or not it is a
MS Word file or an Excel file or a PDF file, etc., etc.? including Zip
files
>
I don`t want to check for file extension.
os.path.splitex t('Filename.jpg ') will produce a tuple of filename and
extension, but some file don`t even have extension and can still be read by
MS Word or NotePad. i want to be 100% sure of the file.
MS Word file or an Excel file or a PDF file, etc., etc.? including Zip
files
>
I don`t want to check for file extension.
os.path.splitex t('Filename.jpg ') will produce a tuple of filename and
extension, but some file don`t even have extension and can still be read by
MS Word or NotePad. i want to be 100% sure of the file.
its output using the 'subprocess' module, but it sounds like you're on
Windows...
Regards,
Chris
--
Follow the path of the Iguana...