diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2018-04-07 12:56:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 12:56:16 +0100 |
commit | 56dc7c6f777b0dbd2fd65d04e39f0e7e34b0ca32 (patch) | |
tree | 8d2cecf0698563c5ca29f8b5205fa6c4d7b6fa53 | |
parent | 673f5f3534cf0fd4e1316d1b7fede31f10878b46 (diff) | |
download | Nim-56dc7c6f777b0dbd2fd65d04e39f0e7e34b0ca32.tar.gz |
Allow searching for "rename file" in documentation
-rw-r--r-- | lib/pure/os.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f8936f549..c581996f6 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -615,6 +615,7 @@ proc tryMoveFSObject(source, dest: string): bool = proc moveFile*(source, dest: string) {.rtl, extern: "nos$1", tags: [ReadIOEffect, WriteIOEffect].} = ## Moves a file from `source` to `dest`. If this fails, `OSError` is raised. + ## Can be used to `rename files`:idx: if not tryMoveFSObject(source, dest): when not defined(windows): # Fallback to copy & del |