Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.musoftware.de!wum.musoftware.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; '*not*': 0.07; 'apis': 0.07; "subject:' ": 0.07; 'url:msdn': 0.07; 'deemed': 0.09; 'formatted': 0.09; 'sep': 0.09; 'such.': 0.09; 'wrong,': 0.09; 'programmer': 0.11; 'subject:not': 0.11; 'sat,': 0.15; 'kris': 0.16; 'kristen': 0.16; 'messages)': 0.16; 'relied': 0.16; 'reserves': 0.16; 'signed)': 0.16; 'subject: \n ': 0.16; "subject:'.": 0.16; 'subject:between': 0.16; 'time"': 0.16; 'webb': 0.16; 'windows?': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'otherwise,': 0.20; 'permission': 0.20; 'file.': 0.20; 'permitted': 0.22; '(i.e.,': 0.23; 'changes,': 0.23; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'officer': 0.27; 'disk': 0.27; 'regular': 0.27; 'chris': 0.28; 'represent': 0.28; 'modified,': 0.29; 'subject:other': 0.29; 'subject:what': 0.29; 'manual': 0.29; '(including': 0.30; 'e.g.': 0.30; 'law.': 0.30; 'subject:last': 0.30; 'on,': 0.30; 'skip:- 30': 0.31; 'retain': 0.33; 'subject:change': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'christian': 0.34; 'updated': 0.34; 'phone:': 0.34; 'similar': 0.35; 'but': 0.36; 'url:library': 0.36; 'should': 0.36; 'communicate': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'comment': 0.38; 'some': 0.38; 'things': 0.38; 'delete': 0.38; 'to:addr:python.org': 0.39; 'notice': 0.39; 'recipient': 0.39; 'called': 0.39; 'url:microsoft': 0.39; 'think': 0.40; 'your': 0.60; 'url:aspx': 0.60; 'subject:, ': 0.61; 'received:network': 0.61; 'email:': 0.62; 'sender.': 0.62; 'received:unknown': 0.63; 'information': 0.63; 'more': 0.63; 'note:': 0.64; 'taking': 0.65; 'notified': 0.65; 'url:en-us': 0.65; 'reliance': 0.66; 'home': 0.66; 'secure': 0.67; 'url:%1': 0.68; 'internet': 0.71; "how's": 0.71; 'guaranteed': 0.76; 'albuquerque,': 0.84; 'fat': 0.84; 'possession,': 0.84; 'remembering': 0.84; 'treats': 0.84; 'yale': 0.84; '1:18': 0.91; 'sorry.': 0.91; 'mr.': 0.99 X-LOBO-SENDER: kwebb@teradactyl.com/64.129.225.153 Date: Fri, 28 Sep 2012 11:48:23 -0600 From: "Kristen J. Webb" Organization: Teradactyl LLC. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: 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'. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348854908 news.xs4all.nl 6965 [2001:888:2000:d::a6]:51800 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30419 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 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@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.