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'.
Kristen J. Webb
kwebb at teradactyl.com
Fri Sep 28 13:48:23 EDT 2012
The Windows stat() call treats things differently,
FROM: http://msdn.microsoft.com/en-us/library/14h5k7ff%28v=vs.80%29.aspx
st_ctime
Time of creation of file. Valid on NTFS but not on FAT formatted disk drives.
I don't think that Windows has a concept of a "change time" for meta data
(though that would be nice). How's that for compatibility ;)
NOTE: I am a C programmer and new to python, so can anyone comment
on what the st_ctime value is when os.stat() is called on Windows?
Kris
On 9/28/12 9:25 AM, Chris Angelico wrote:
> 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
>
--
This message is NOT encrypted
--------------------------------
Mr. Kristen J. Webb
Chief Technology Officer
Teradactyl LLC.
2301 Yale Blvd. SE.
Suite C7
Albuquerque, NM 87106
Phone: 1-505-338-6000
Email: kwebb at teradactyl.com
Web: http://www.teradactyl.com
Home of the
True incremental Backup System
--------------------------------
NOTICE TO RECIPIENTS: Any information contained in or attached to this message
is intended solely for the use of the intended recipient(s). If you are not the
intended recipient of this transmittal, you are hereby notified that you
received this transmittal in error, and we request that you please delete and
destroy all copies and attachments in your possession, notify the sender that
you have received this communication in error, and note that any review or
dissemination of, or the taking of any action in reliance on, this communication
is expressly prohibited.
Regular internet e-mail transmission cannot be guaranteed to be secure or
error-free. Therefore, we do not represent that this information is complete or
accurate, and it should not be relied upon as such. If you prefer to communicate
with Teradactyl LLC. using secure (i.e., encrypted and/or digitally signed)
e-mail transmission, please notify the sender. Otherwise, you will be deemed to
have consented to communicate with Teradactyl via regular internet e-mail
transmission. Please note that Teradactyl reserves the right to intercept,
monitor, and retain all e-mail messages (including secure e-mail messages) sent
to or from its systems as permitted by applicable law.
More information about the Python-list
mailing list