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, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-06-24.17:20:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593019251.46.0.45264171714.issue41106@roundup.psfhosted.org>
In-reply-to
Content
One hint more.

Start of new process os.scandir() give invalid modification date for file open for writing until external tool is not called (like explorer, touch, etc.).

So (log open for writing and write is done between 1, 2):
1. Run program with os.scandir() -> dir_entry.stat().st_mtime() = t1.
2. Run program with os.scandir() -> dir_entry.stat().st_mtime() = t1.
Modification is stalled.

Another scenario (log open for writing and write is done between 1, 3):
1. Run program with os.scandir() -> dir_entry.stat().st_mtime() = t1.
2. touch -> dir_entry.path
3. Run program with os.scandir() -> dir_entry.stat().st_mtime() = t2.
Modification works.
History
Date User Action Args
2020-06-24 17:20:51Cezary.Wagnersetrecipients: + Cezary.Wagner, paul.moore, tim.golden, zach.ware, steve.dower
2020-06-24 17:20:51Cezary.Wagnersetmessageid: <1593019251.46.0.45264171714.issue41106@roundup.psfhosted.org>
2020-06-24 17:20:51Cezary.Wagnerlinkissue41106 messages
2020-06-24 17:20:51Cezary.Wagnercreate