This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Cezary.Wagner
Recipients Cezary.Wagner, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-06-25.12:10:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593087029.02.0.172332744703.issue41106@roundup.psfhosted.org>
In-reply-to
Content
I read some comments os.flush() or os.fsync() can be unrelated to problem. External application can be written in C# or whatever you want.

Under Windows (not Linux) - modification dates will be stalled in such sequence.
os.scandir()
dir_entry.stat() # let it be dir_entry.path == 'test.txt'
dir_entry.stat().st_mtime # will be for example 1
os.scandir()
dir_entry.stat() # let it be dir_entry.path == 'test.txt'
dir_entry.stat().st_mtime # will be STALLED for example 1


Under Windows (not Linux) - modification dates will be refreshed in such sequence.
os.scandir()
dir_entry.stat() # let it be dir_entry.path == 'test.txt'
dir_entry.stat().st_mtime # will be for example 1
os.stat('test.txt') # this code do something and it is not stalled in next call
os.scandir()
dir_entry.stat() # let it be dir_entry.path == 'test.txt'
dir_entry.stat().st_mtime # will be CHANGED for example 2
History
Date User Action Args
2020-06-25 12:10:29Cezary.Wagnersetrecipients: + Cezary.Wagner, paul.moore, tim.golden, zach.ware, eryksun, steve.dower
2020-06-25 12:10:29Cezary.Wagnersetmessageid: <1593087029.02.0.172332744703.issue41106@roundup.psfhosted.org>
2020-06-25 12:10:29Cezary.Wagnerlinkissue41106 messages
2020-06-25 12:10:28Cezary.Wagnercreate