Update existsFile documentation (#7888)
This commit is contained in:
parent
f2f7896c2b
commit
21fb0db6e2
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ when defined(windows):
|
||||||
|
|
||||||
proc existsFile*(filename: string): bool {.rtl, extern: "nos$1",
|
proc existsFile*(filename: string): bool {.rtl, extern: "nos$1",
|
||||||
tags: [ReadDirEffect].} =
|
tags: [ReadDirEffect].} =
|
||||||
## Returns true if the file exists, false otherwise.
|
## Returns true if `filename` exists and is a regular file or symlink.
|
||||||
|
## (directories, device files, named pipes and sockets return false)
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
when useWinUnicode:
|
when useWinUnicode:
|
||||||
wrapUnary(a, getFileAttributesW, filename)
|
wrapUnary(a, getFileAttributesW, filename)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue