os.nim: posix copyFile showed a weird problem about buffer flushing; worked around via flushFile() call

This commit is contained in:
Andreas Rumpf
2016-11-05 22:54:52 +01:00
committed by Araq
parent a99b94e523
commit 91bcf99d8a

View File

@@ -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",