Josh Rosenberg added the comment:

This is documented behavior. Per the docs for os.DirEntry's stat method (the 
objects yielded by os.scandir):

>On Windows, the st_ino, st_dev and st_nlink attributes of the stat_result are 
>always set to zero. Call os.stat() to get these attributes.

It might be nice if those values could be cached on read (through a lazily 
initialized value on property access or the like), but this is not a bug, it's 
working as documented.

----------
nosy: +josh.r

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28041>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to