[Tutor] File Attributes

David Porter jcm@bigskytel.com
Tue, 13 Mar 2001 23:16:37 -0700


* Timothy M. Brauch <tbrauch@mindless.com>:
> I know that os.stat(fd) will return a tuple of integers about a file. 
> Two of the numbers are the date it was accessed last and last
> modification.  Is there a way to find out when a file was created?

Look closer. Items 7, 8, and 9 in the tuple are atime, mtime, and ctime
respectively:

os.stat(filename)[9] 


David