Skip to content

Commit

Permalink
Update Doc/library/pathlib.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
barneygale and AA-Turner authored Jan 23, 2024
1 parent f4017ba commit 9643b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ call fails (for example because the path doesn't exist).
If *exist_ok* is false (the default), :exc:`FileExistsError` is
raised if the target directory already exists.

If *exist_ok* is true, :exc:`FileExistsError` is raised only if the given
If *exist_ok* is true, :exc:`FileExistsError` will not be raised unless the given
path already exists in the file system and is not a directory (same
behavior as the POSIX ``mkdir -p`` command).

Expand Down

0 comments on commit 9643b02

Please sign in to comment.