what is the difference between st_ctime and st_mtime one is the time of last change and the other is the time of last modification, but i can not understand what is the difference between 'change' and 'modification'.

Chris Angelico rosuav at gmail.com
Fri Sep 28 11:25:18 EDT 2012


On Sat, Sep 29, 2012 at 1:18 AM, Christian Heimes <christian at python.org> wrote:
> Am 28.09.2012 17:07, schrieb Chris Angelico:
> In the future please read the manual before replying! ;) You are wrong,
> ctime is *not* the creation time. It's the change time of the inode.
> It's updated whenever the inode is modified, e.g. metadata modifications
> like permission changes, link/unlink of hard links etc.

Whoops, my bad! Sorry. I was remembering some other APIs with similar
terminology.

Lesson: Check the docs, they're more reliable.

ChrisA



More information about the Python-list mailing list