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'.
Christian Heimes
christian at python.org
Fri Sep 28 11:18:28 EDT 2012
More information about the Python-list mailing list
Fri Sep 28 11:18:28 EDT 2012
- Previous message (by thread): 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'.
- Next message (by thread): 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'.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 28.09.2012 17:07, schrieb Chris Angelico: > On Fri, Sep 28, 2012 at 11:12 PM, 陈伟 <chenwei.address at gmail.com> wrote: >> >> -- >> http://mail.python.org/mailman/listinfo/python-list > > In future, can you put the body of your message into the body please? :) > > ctime is creation time, not change time. mtime is modification time, > as you have. But I can understand where the confusion comes from; > Google tells me there've been documentation bugs involving this very > thing (and Google, being extremely Lawful Neutral, would have happily > told you the same thing if you'd asked). 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. Christian
- Previous message (by thread): 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'.
- Next message (by thread): 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'.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list