Re:Files Are Hard (2015)
by blattimwind on Sunday December 01, 2019 @08:20PM
(#21679134)
> Unless you call FlushFileBuffers after all writes are finished, Windows makes no guarantee that the physical copy of a file on-disk will contain all previously written data, even if the file has been subsequently closed and renamed.
On *nix you need to sync before renaming as well.