explicit effects for existsOrCreateDir
This commit is contained in:
parent
c6f15c53f4
commit
7c879d9b0f
1 changed files with 2 additions and 1 deletions
|
|
@ -925,7 +925,8 @@ proc rawCreateDir(dir: string): bool =
|
||||||
else:
|
else:
|
||||||
raiseOSError(osLastError())
|
raiseOSError(osLastError())
|
||||||
|
|
||||||
proc existsOrCreateDir*(dir: string): bool =
|
proc existsOrCreateDir*(dir: string): bool {.rtl, extern: "nos$1",
|
||||||
|
tags: [WriteDirEffect, ReadDirEffect].} =
|
||||||
## Check if a `directory`:idx: `dir` exists, and create it otherwise.
|
## Check if a `directory`:idx: `dir` exists, and create it otherwise.
|
||||||
##
|
##
|
||||||
## Does not create parent directories (fails if parent does not exist).
|
## Does not create parent directories (fails if parent does not exist).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue