diff options
-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 8f8f36b80..f077e798a 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -613,6 +613,7 @@ proc copyFile*(source, dest: string) {.rtl, extern: "nos$1", if bytesread != bufSize: break dealloc(buf) close(s) + flushFile(d) close(d) proc moveFile*(source, dest: string) {.rtl, extern: "nos$1", |