路径检查

This commit is contained in:
龙腾猫跃 committed 2026-05-08 22:09:42 +08:00
1 parent 4f1664459d
commit f760befa26
7 files changed
+108 -11

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ public static class DirectoryUtils {
} catch (DirectoryNotFoundException ex) { // #4549,也可能已被其他线程删除
if (DirectoryUtils.Exists(folder)) {
Logger.Warn(ex, $"该文件夹可能为孤立的符号链接,尝试直接删除({folder})");
Directory.Delete(folder);
Directory.Delete(folder, true);
} else {
throw;
}