[Python-Dev] pathlib and issue 11406 (a directory iterator returning stat-like info) (original) (raw)

Paul Moore p.f.moore at gmail.com
Mon Nov 25 08:58:02 CET 2013


On 25 November 2013 03:18, Ben Hoyt <benhoyt at gmail.com> wrote:

dino -- can a non-Windows dev tell me how or when dino would be useful? If it's useful, is it useful in a higher-level, cross-platform API such as scandir()?

OK, so I'm a Windows dev, but my understanding is that d_ino is useful to tell if two files are identical - hard links to the same physical file have the same d_ino value. I don't believe it's possible to do this on Windows at all.

I've seen it used in tools like diff, to short-circuit doing the actual diff if you know from a stat that the 2 files are the same. Paul



More information about the Python-Dev mailing list