On Sat Jul 16 01:29:19 2022 +0000, Esme Povirk wrote:
Is it possible to get this information from the result of MoveFileW? Checking first has the disadvantage that the file could be deleted between the call to GetFileAttributesW and the call to MoveFileW. See https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use
Hi Esme, thanks for the review. Yes, I could check for MoveFileW error here. However MoveFileW will return FILENOTFOUND for non-existing source, but I need to return PATHNOTFOUND in this case. Therefore I cannot use create_error if MoveFileW fails.