删除不必要的Delete命令
This commit is contained in:
1 file changed
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user