Update existsFile documentation (#7888)

This commit is contained in:
Federico Ceratto
2018-05-28 00:35:19 +01:00
committed by Varriount
parent f2f7896c2b
commit 21fb0db6e2

View File

@@ -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)