Message372273
I'm going to have to spend more time to analyse this (later), but it seems like Windows deciding not to update the directory's data structures (containing the st_mtime retrieved by scandir) as long as the file is still open.
I suspect the answer for your scenario is that you'll just have to use os.stat() to get the information from the file's entry, rather than the directory's entry. It's unlikely there's anything we can do at Python's level without sacrificing all the performance gains of scandir() for all other scenarios. |
|
Date |
User |
Action |
Args |
2020-06-24 18:24:20 | steve.dower | set | recipients:
+ steve.dower, paul.moore, tim.golden, zach.ware, Cezary.Wagner |
2020-06-24 18:24:20 | steve.dower | set | messageid: <1593023060.43.0.442283631707.issue41106@roundup.psfhosted.org> |
2020-06-24 18:24:20 | steve.dower | link | issue41106 messages |
2020-06-24 18:24:20 | steve.dower | create | |
|