get Windows file type

BartlebyScrivener rpdooling at gmail.com
Mon May 8 07:57:50 EDT 2006


Using Python on Windows XP, I am able to get almost all file and path
info using os.path or stat, but I don't see a way to retrieve the file
type? E.g. Microsoft Word file, HTML file, etc, the equivalent of what
is listed in the "Type" column in the Windows Explorer box.

Thanks,

rick




More information about the Python-list mailing list