Skip to content

Commit ecae948

Browse files
committed
Address Stan's comments
1 parent 6eee976 commit ecae948

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/library/pathlib.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,13 @@ we also call *flavours*:
131131
>>> PurePath(Path('foo'), Path('bar'))
132132
PurePosixPath('foo/bar')
133133

134-
When *pathsegments* is empty or a single empty string,
134+
When *pathsegments* is empty or consists only of empty strings,
135135
the current directory is assumed::
136136

137137
>>> PurePath(), PurePath('')
138138
(PurePosixPath('.'), PurePosixPath('.'))
139139

140140
The boolean value of either expression is True.
141-
This differs from ``os.path.exists("")``, which returns ``False``.
142141

143142
If a segment is an absolute path, all previous segments are ignored
144143
(like :func:`os.path.join`)::
@@ -1045,6 +1044,7 @@ Querying file type and status
10451044
.. method:: Path.exists(*, follow_symlinks=True)
10461045

10471046
Return ``True`` if the path points to an existing file or directory.
1047+
This includes empty paths, which Path interprets as the current directory.
10481048
``False`` will be returned if the path is invalid, inaccessible or missing.
10491049
Use :meth:`Path.stat` to distinguish between these cases.
10501050

0 commit comments

Comments
 (0)