瀏覽代碼

删除不必要的Delete命令

HerobrineXia 2 月之前
父節點
當前提交
d6186caa8b
共有 1 個文件被更改,包括 0 次插入 和 1 次删除
  1. 0 1
      Shared/Utils/FileUtils.cs

+ 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);
         });
     }