os.nim: posix copyFile showed a weird problem about buffer flushing; worked around via flushFile() call
This commit is contained in:
parent
162f5ddb7d
commit
a644471b12
1 changed files with 1 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue