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.
NotADirectoryError
1 parent ff1857d commit e80568dCopy full SHA for e80568d
Doc/library/pathlib.rst
@@ -1630,6 +1630,9 @@ example because the path doesn't exist).
1630
If *missing_ok* is true, :exc:`FileNotFoundError` exceptions will be
1631
ignored (same behavior as the POSIX ``rm -f`` command).
1632
1633
+ If an intermediate part of the path points to a file,
1634
+ :exc:`NotADirectoryError` will be raised.
1635
+
1636
.. versionchanged:: 3.8
1637
The *missing_ok* parameter was added.
1638
0 commit comments