From 91bcf99d8a1cc8b663cd35bf02ab067dd24c32c3 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 5 Nov 2016 22:54:52 +0100 Subject: os.nim: posix copyFile showed a weird problem about buffer flushing; worked around via flushFile() call --- lib/pure/os.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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", -- cgit 1.4.1-2-gfad0