2
0
Эх сурвалжийг харах

删除不必要的Delete命令

HerobrineXia 3 сар өмнө
parent
commit
d6186caa8b

+ 0 - 1
Shared/Utils/FileUtils.cs

@@ -100,7 +100,6 @@ public static class FileUtils {
         DirectoryUtils.Create(PathUtils.RemoveLastPart(filePath));
         Logger.Trace($"写入文件:{filePath}({content.Length} 字节)");
         Retrier.Attempt(delay: _ => TimeSpan.FromMilliseconds(200), isRetryAllowed: ex => ex is IOException, action: _ => {
-            FileUtils.Delete(filePath);
             File.WriteAllBytes(PathUtils.ForApi(filePath), content);
         });
     }