Module to access file attributes for Windows?

Tim Peters tim_one at email.msn.com
Wed Jan 26 01:08:05 EST 2000


[Matthew Miller]
> Is their a module to access file attributes like:- date
> created/modified,etc for Windows? I've had a reaonable look
> around but with no success.

See the docs for os.stat, os.path.getatime, os.path.getmtime,
os.path.getsize, etc.  These are (mostly) platform-independent.  To get at
Windows-specific stuff (basically the whole Win32 API, plus everything else
<wink>), you need to get the PythonWin extensions.






More information about the Python-list mailing list