We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 047471c commit bf3a3f7Copy full SHA for bf3a3f7
Doc/library/os.path.rst
@@ -350,9 +350,9 @@ the :mod:`glob` module.)
350
links encountered in the path (if they are supported by the operating
351
system).
352
353
- In non-strict mode (the default), missing or inaccessible ancestors are
354
- permitted; when encountered, the remainder of the path joined on and
355
- returned. In strict mode an :exc:`OSError` is raised in this scenario.
+ If the path doesn't exist and *strict* is ``True``, :exc:`FileNotFoundError`
+ is raised. If *strict* is ``False``, the path is resolved as far as possible
+ and any remainder is appended without checking whether it exists.
356
357
.. versionchanged:: 3.6
358
Accepts a :term:`path-like object`.
0 commit comments