Hi.
I'm planning to port some code that use POSIX rename to Windows.
From what I can read, MoveFileEx, as used by the os package, is not atomic.
The authors of this paper:
state that ReplaceFile is the Windows version of POSIX rename.
From the documentation I can not understand if this is true.
One limitation is that it does not work on directories, but this is fine in my case.
ReplaceFile is also listed as an alternative for the Transacted API, that will probably be deprecated in a future Windows version, but this just make me more confused, since atomic or transaction is never mentioned in the ReplaceFile documentation.
Any Windows experts that can help me?
Thanks Manlio