-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support for the operations in UnliftIO.IO.File? #50
Comments
I spoke with @lehins about this a while ago. We didn't know how to add this support correctly on Windows. We'd really need a Windows API expert to step up to the plate with a good PR. |
From what I know none of the functions in Windows API documentation are stating that a file rename can be done atomically (except There are two place in the Microsoft related documents that say that
In order to get this done properly a bit of research would be needed, but from what I've seen so far it is not the In fact looking at the implementation of |
Thanks for the quick response! :) Just atomicity on Windows would already be a big step forward for me – I actually don't need durability right now. The |
Most of the file operations in
UnliftIO.IO.File
have disclaimers like this:I presume that this means that atomicity and durability are not implemented on Windows.
If so, could the same guarantees be implemented on Windows too?
The text was updated successfully, but these errors were encountered: