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).
13061306 If *exist_ok * is false (the default), :exc: `FileExistsError ` is
13071307 raised if the target directory already exists.
13081308
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) .
13121312
13131313 .. versionchanged :: 3.5
13141314 The *exist_ok * parameter was added.
You can’t perform that action at this time.
0 commit comments