File information??

Egor Bolonev ebolonev at rol.ru
Fri Jul 4 02:20:02 EDT 2003


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