Re: stat_result.st_ino from os.stat isn't constant on a network drive.

2020-08-26 Thread Eryk Sun
On 8/25/20, Andrew Nelson wrote: > > st_ino is supposed to "uniquely identify the file for a given value of > st_dev." That assurance only applies to POSIX systems, not Windows. st_ino is the file ID in Windows. Some filesystems do not support reliable file IDs, if any at all. I would only rely

stat_result.st_ino from os.stat isn't constant on a network drive.

2020-08-26 Thread Andrew Nelson
OS: windows 7 Python: 3.8 I am trying to track which files have been modified in a directory on a network mount. When I call the os.stat function for a given file in that directory the stat_result.st_ino changes every time I call it: ``` >>> os.stat('U:\data\current\myfile') os.stat_result(st_mod