Checking file attributes

mdperry_26 at my-deja.com mdperry_26 at my-deja.com
Thu Oct 28 17:03:34 EDT 1999


Is there an easy way in python to return the file attributes of a file
in NT(i.e. hidden, system, archive, etc.).  I have been poking around
the os.stat module and can return some file information but it doesn't
look like you can derive any information about the attribute bits.  Any
suggestions?

(If not I will have to go to plan b which is call attrib /s in dos and
pipe the contents to a file for parsing.  It could get very ugly).

Thanks.


Sent via Deja.com http://www.deja.com/
Before you buy.




More information about the Python-list mailing list