File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1306,9 +1306,9 @@ call fails (for example because the path doesn't exist).
1306
1306
If *exist_ok * is false (the default), :exc: `FileExistsError ` is
1307
1307
raised if the target directory already exists.
1308
1308
1309
- If *exist_ok * is true, :exc: `FileExistsError ` exceptions will be
1310
- ignored (same behavior as the POSIX `` mkdir -p `` command), but only if the
1311
- last path component is not an existing non-directory file .
1309
+ If *exist_ok * is true, :exc: `FileExistsError ` will not be raised unless the given
1310
+ path already exists in the file system and is not a directory (same
1311
+ behavior as the POSIX `` mkdir -p `` command) .
1312
1312
1313
1313
.. versionchanged :: 3.5
1314
1314
The *exist_ok * parameter was added.
You can’t perform that action at this time.
0 commit comments