From 21fb0db6e271148e5c8970f0f9f4805bae2ca59a Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Mon, 28 May 2018 00:35:19 +0100 Subject: [PATCH] Update existsFile documentation (#7888) --- lib/pure/os.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 370420d37..3ff608cfc 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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)