C#: store replace on Windows tries POSIX-semantics rename first (store-windows-cs) (#152)

This commit is contained in:
Libby 2026-11-13 00:38:07 +00:00
commit a85c63712b
5 changed files with 466 additions and 46 deletions

View file

@ -5219,14 +5219,7 @@ namespace GameCult.Caching
stream.Flush(true);
}
if (File.Exists(path))
{
File.Replace(tempPath, path, null);
}
else
{
File.Move(tempPath, path);
}
StoreReplace.Replace(tempPath, path);
}
finally
{