From d6186caa8b7dcec1b16cbeeb23a6d2b7e153c98e Mon Sep 17 00:00:00 2001 From: HerobrineXia Date: Thu, 6 Aug 2026 15:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84Delete=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shared/Utils/FileUtils.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Shared/Utils/FileUtils.cs b/Shared/Utils/FileUtils.cs index b6e3d7a..8724f94 100644 --- a/Shared/Utils/FileUtils.cs +++ b/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); }); }