summary refs log tree commit diff stats
path: root/lib/std/symlinks.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/symlinks.nim')
-rw-r--r--lib/std/symlinks.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/symlinks.nim b/lib/std/symlinks.nim
index 9e77bbe2a..dbe908612 100644
--- a/lib/std/symlinks.nim
+++ b/lib/std/symlinks.nim
@@ -1,11 +1,12 @@
 ## This module implements symlink (symbolic link) handling.
 
-from paths import Path, ReadDirEffect
+## .. importdoc:: os.nim
 
-from std/private/ossymlinks import symlinkExists, createSymlink, expandSymlink
+from std/paths import Path, ReadDirEffect
 
+from std/private/ossymlinks import symlinkExists, createSymlink, expandSymlink
 
-proc symlinkExists*(link: Path): bool {.inline, tags: [ReadDirEffect].} =
+proc symlinkExists*(link: Path): bool {.inline, tags: [ReadDirEffect], sideEffect.} =
   ## Returns true if the symlink `link` exists. Will return true
   ## regardless of whether the link points to a directory or file.
   result = symlinkExists(link.string)