Daniil Soloviev
Daniil Soloviev
@endercrest #3136 which I suspect had the same root cause was fixed in the latest nightly (0.5.408), so this might be too.
Update - can confirm the issue isn't present in stale 0.11.4, if that helps narrow down when it was introduced.
Think I've identified the root cause: tempfile's implementation of `persist()` on Windows uses `MoveFileExW()` to move the temporary file to the permanent one ([source](https://github.com/Stebalien/tempfile/blob/73e92b3e8373e7bec563c9e1e7b7d896661363c1/src/file/imp/windows.rs#L89)), which may return before the file...
Re: the mingw code, it seems to account for some cases where it doesn't have permissions to modify the file. If it does, but still gets an access denied error,...