A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-November/130592.html below:

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

[Python-Dev] pathlib and issue 11406 (a directory iterator returning stat-like info) [Python-Dev] pathlib and issue 11406 (a directory iterator returning stat-like info)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:
> d_ino -- can a non-Windows dev tell me how or when d_ino 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4