File information??

Stan Cook scook at elp.rr.com
Fri Jul 4 14:31:27 CEST 2003


Thanks! I'll try that.
"Egor Bolonev" <ebolonev at rol.ru> wrote in message
news:be36cf$j23$1 at news.rol.ru...
> Hello, Stan!
> You wrote  on Fri, 04 Jul 2003 05:59:10 GMT:
>
>  SC> Is there a way to get the file size and modified date of a file?
>
> os.stat()
>
> =========Beginning of the citation==============
> import os,glob
>
> a=glob.glob('c:\\*')[0]
> print os.stat(a)[6],os.stat(a)[8]
>
> =========The end of the citation================
>
> With best regards, Egor Bolonev.  E-mail: ebolonev at rol.ru [ru eo en]
>






More information about the Python-list mailing list