delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:references:to:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=ZSy9fAQj0Z6evgGU | |
B5y6gcnthT17EYHNxyj+/UYAV/4l0g4FSlnnUv/cIR2m0aKG4dFTig/wG0sd2ldk | |
GWBvkDAWRVpTrJnHVwFYawXVbHW9wsDS+IULOpyyqxCY5jJV7OG0HXIeuGjMOKcj | |
zWY3ntbhH23dl9ztfTCJXbc9gj8= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:references:to:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=qOPpxThqmDawZQsCoFwq1B | |
f2AFg=; b=Y5+fMrRSWoUWV4z2dXYnLUwjkIMnwkKerYtHhCFHgVwRf8Ud6P/Tkm | |
SWaM21cYds7YgjmcS9cG21pdry53oO1UFDjCJ5Ayt4oVerCFZjpR3VTLGlKeT5jz | |
A3Fk7HtQu8IXwkKEWEW4gjJEPVO+mPBXCVHXiAXZ2VMfkvJfTLJaE= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=0.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=anti-POSIX, antiposix, aposix, anti-posix |
X-HELO: | csmail.cs.umass.edu |
Reply-To: | moss AT cs DOT umass DOT edu |
Subject: | Re: cygwin python os.stat gives wrong ctime |
References: | <4026b0f6-0514-576e-def4-c5fcd79148b9 AT cs DOT umass DOT edu> <574B42EA DOT 9060408 AT houseofpain DOT org> |
To: | cygwin AT cygwin DOT com |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
Message-ID: | <b200fbe9-96df-3047-e02b-c7c0a7f80d29@cs.umass.edu> |
Date: | Mon, 30 May 2016 10:53:09 -0400 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <574B42EA.9060408@houseofpain.org> |
X-IsSubscribed: | yes |
On 5/29/2016 3:28 PM, Mitch Deoudes wrote: > > > On 5/28/2016 10:35 PM, Eliot Moss wrote: >> On 5/28/2016 9:39 PM, Mitch Deoudes wrote: >>> According to the python docs, os.stat() gives the following for st_ctime: >>> >>> "|st_ctime| - platform dependent; time of most recent metadata change on Unix, or the time of >>> creation on Windows" >> >> cygwin emulates posix, so you should expect a posix-like result. > > I understand your argument, and offer the following, which is from the same section of the python docs: > > "On other Unix systems (such as FreeBSD), the following attributes may be available (but may be > only filled out if root tries to use them): > > * |st_birthtime| - time of file creation" > > Suggesting that it's not "anti-POSIX" (unPOSIX? aPOSIX?) to provide the information if it's available. > > Anyway, I've found a more or less suitable workaround for now, batching up the queries and calling > out to the shell - so I'll leave it at that. It appears, then, that the maintainer of cygwin's python could consider adjusting for this information to be returned, since cygwin provides it and it would be useful (at least sometimes). The python spec does say "may" (not "shall" or "must"), so it seems to me forgivable that it's not currently available. I'd say it's up to the maintainer to decide, and how to prioritize it. Regards -- EM -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |