Open hajimehoshi opened 2 years ago
In the current os.Rename implementationm MoveFileEx is used but with a different flags: https://cs.opensource.google/go/go/+/refs/tags/go1.18.3:src/internal/syscall/windows/syscall_windows.go;l=293
So the difference is whether MOVEFILE_WRITE_THROUGH is used or not. I was wondering why this is needed. If this is needed, should we commit this flag to the Go standard library?
MOVEFILE_WRITE_THROUGH
Thanks,
In the current os.Rename implementationm MoveFileEx is used but with a different flags: https://cs.opensource.google/go/go/+/refs/tags/go1.18.3:src/internal/syscall/windows/syscall_windows.go;l=293
So the difference is whether
MOVEFILE_WRITE_THROUGH
is used or not. I was wondering why this is needed. If this is needed, should we commit this flag to the Go standard library?Thanks,