summary refs log tree commit diff stats
path: root/lib/std/files.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/files.nim')
-rw-r--r--lib/std/files.nim7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/std/files.nim b/lib/std/files.nim
index 138bb5234..c4e0491c9 100644
--- a/lib/std/files.nim
+++ b/lib/std/files.nim
@@ -1,12 +1,15 @@
 ## This module implements file handling.
+##
+## **See also:**
+## * `paths module <paths.html>`_ for path manipulation
 
-from paths import Path, ReadDirEffect, WriteDirEffect
+from std/paths import Path, ReadDirEffect, WriteDirEffect
 
 from std/private/osfiles import fileExists, removeFile,
                                 moveFile
 
 
-proc fileExists*(filename: Path): bool {.inline, tags: [ReadDirEffect].} =
+proc fileExists*(filename: Path): bool {.inline, tags: [ReadDirEffect], sideEffect.} =
   ## Returns true if `filename` exists and is a regular file or symlink.
   ##
   ## Directories, device files, named pipes and sockets return false.