路径检查
This commit is contained in:
1 parent
4f1664459d
commit
f760befa26
7 files changed
+108
-11
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user