Re: cygwin python os.stat gives wrong ctime

2016-05-30 Thread Yaakov Selkowitz
On 2016-05-30 03:39, Corinna Vinschen wrote: On May 28 21:39, Mitch Deoudes wrote: Cygwin's ctime is Change time, not Birth time, that's why Cygwin's stat structure comes with an additional st_birthtime as on the BSDs. I have no idea if python has a compile time option to make st_birthtime visib

Re: cygwin python os.stat gives wrong ctime

2016-05-30 Thread Eliot Moss
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

Re: cygwin python os.stat gives wrong ctime

2016-05-30 Thread Corinna Vinschen
On May 28 21:39, 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" > > To reproduce: > 1) touch foo > 2) wait a minut

Re: Re: cygwin python os.stat gives wrong ctime

2016-05-29 Thread Mitch Deoudes
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 emul

Re: cygwin python os.stat gives wrong ctime

2016-05-28 Thread Eliot Moss
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

cygwin python os.stat gives wrong ctime

2016-05-28 Thread Mitch Deoudes
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" To reproduce: 1) touch foo 2) wait a minute 3) touch foo 4) use python's os.stat() on