Interpreting os.lstat()

Will Maier willmaier at
Thu Jul 19 03:22:32 CEST 2007

On Wed, Jul 18, 2007 at 05:55:59PM -0700, Adrian Petrescu wrote:
> I can see some correspondence between the "stat" call and os.lstat
> (for example, I'm guessing os.lstat(path)[6] represents the filesize),
> but I can't see the correspondence between some of the other fields.
> What does os.lstat(path)[0] represent? Are those last three the
> created/modified/accessed times in unix time or what? Basically, what
> does each field of os.lstat(path) represent?

There's a whole module available explicitly for "interpreting
results of os.stat() and os.lstat()."


[Will Maier]-----------------[willmaier at|]

More information about the Python-list mailing list