Skip to content

Commit 02cfee1

Browse files
committed
Add note about missing Windows fields when backed by os.DirEntry.
1 parent e335864 commit 02cfee1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/pathlib.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,11 @@ Path information
18111811
If *follow_symlinks* is ``False`` and this path is a symlink, return
18121812
information about the symlink rather than its target.
18131813

1814+
On Windows, if the path was generated by scanning a directory, then the
1815+
``st_ino``, ``st_dev`` and ``st_nlink`` attributes of the
1816+
:class:`~os.stat_result` are always set to zero. Call :meth:`Path.stat`
1817+
to get these attributes.
1818+
18141819

18151820
.. _pathlib-pattern-language:
18161821

0 commit comments

Comments
 (0)