C#: store replace on Windows tries POSIX-semantics rename first (store-windows-cs) (#152)
This commit is contained in:
parent
73e2131d9a
commit
a85c63712b
5 changed files with 466 additions and 46 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue