As we don't support Windows anymore, we can rely on the fact that rename on POSIX guarantees that the newpath will be atomically replaced.
As we don't support Windows anymore, we can rely on the fact that rename on POSIX guarantees that the newpath will be atomically replaced.