mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
Update existsFile documentation (#7888)
This commit is contained in:
committed by
Varriount
parent
f2f7896c2b
commit
21fb0db6e2
@@ -70,7 +70,8 @@ when defined(windows):
|
||||
|
||||
proc existsFile*(filename: string): bool {.rtl, extern: "nos$1",
|
||||
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 useWinUnicode:
|
||||
wrapUnary(a, getFileAttributesW, filename)
|
||||
|
||||
Reference in New Issue
Block a user