Skip to content

Commit e48a60a

Browse files
committed
fix(py): os.makedirs exist_ok was exists_ok
1 parent 8110d1a commit e48a60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pylib/Lib/os_impl/utils.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ proc chdir*(s: PathLike) =
2323
sys.audit("os.chdir", s)
2424
chdirImpl(s)
2525

26-
proc makedirs*[T](d: PathLike[T], mode=0o777, exists_ok=false) =
26+
proc makedirs*[T](d: PathLike[T], mode=0o777, exist_ok=false) =
2727
let dir = $d
2828
if dir == "":
2929
return
@@ -32,7 +32,7 @@ proc makedirs*[T](d: PathLike[T], mode=0o777, exists_ok=false) =
3232
if omitNext:
3333
omitNext = false
3434
else:
35-
p.tryOsOp not exists_ok or not dirExists(p):
35+
p.tryOsOp not exist_ok or not dirExists(p):
3636
mkdir(p, mode)
3737
3838
proc removedirs*(d: PathLike) =

0 commit comments

Comments
 (0)