summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2010-09-21 07:48:35 +0200
committerAraq <rumpf_a@web.de>2010-09-21 07:48:35 +0200
commit53cd61546dc798fc0f08baf0813f579a90d7e766 (patch)
tree528cdfef133223e75f8cdff82147e8247660aa54 /lib/pure
parentea2306b301262d4010724c6db0374f5fa866ea85 (diff)
downloadNim-53cd61546dc798fc0f08baf0813f579a90d7e766.tar.gz
proper parameter order for os.copyFile/os.moveFile
Diffstat (limited to 'lib/pure')
-rwxr-xr-xlib/pure/os.nim8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 6ad39d5ca..a1dd5450d 100755
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -620,11 +620,9 @@ proc sameFileContent*(path1, path2: string): bool {.rtl, extern: "nos$1".} =
   close(a)
   close(b)
 
-proc copyFile*(dest, source: string) {.deprecated, rtl, extern: "nos$1".} =
+proc copyFile*(source, dest: string) {.rtl, extern: "nos$1".} =
   ## Copies a file from `source` to `dest`. If this fails,
   ## `EOS` is raised.
-  ## **Deprecated since version 0.8.8**: Use this proc with named arguments
-  ## only, because the order will change!
   when defined(Windows):
     if CopyFileA(source, dest, 0'i32) == 0'i32: OSError()
   else:
@@ -650,10 +648,8 @@ proc copyFile*(dest, source: string) {.deprecated, rtl, extern: "nos$1".} =
     close(s)
     close(d)
 
-proc moveFile*(dest, source: string) {.deprecated, rtl, extern: "nos$1".} =
+proc moveFile*(source, dest: string) {.rtl, extern: "nos$1".} =
   ## Moves a file from `source` to `dest`. If this fails, `EOS` is raised.
-  ## **Deprecated since version 0.8.8**: Use this proc with named arguments
-  ## only, because the order will change!
   if crename(source, dest) != 0'i32: OSError()
 
 proc removeFile*(file: string) {.rtl, extern: "nos$1".} =