Closed acheronfail closed 4 years ago
Investigate https://docs.rs/tempfile/3.1.0/tempfile/struct.TempPath.html#method.persist as a possible alternative
After some attempts I've narrowed down the issue to this: https://github.com/Stebalien/tempfile/issues/131
After running some manual tests, the atomic replacement functions correctly on Windows, just not between two instances of NamedTempFile
.
Okay, this has been fixed with some workarounds:
NamedTempFile::keep()
(in tests) to let Windows then be able to write to that fileFile
object returned from the above before attempting to atomically replace (NamedTempFile::persist()
) onto that file
Waiting on: