File information??

E

Egor Bolonev

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: (e-mail address removed) [ru eo en]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top