From 6ec4fcee5f1ac6b3f46bebac65d1b90b6eb0bc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=85=BE=E7=8C=AB=E8=B7=83?= <1043137532@qq.com> Date: Wed, 13 May 2026 12:51:41 +0800 Subject: [PATCH] * --- Shared/Utils/PathUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared/Utils/PathUtils.cs b/Shared/Utils/PathUtils.cs index dbeff4f..534ca5a 100644 --- a/Shared/Utils/PathUtils.cs +++ b/Shared/Utils/PathUtils.cs @@ -25,9 +25,9 @@ public static class PathUtils { /// public static string ToShortPath(string fullName, bool keepFileName = false) { if (string.IsNullOrEmpty(fullName)) return fullName; - if (!fullName.Contains(":") || fullName.Contains("://")) return fullName; - fullName = PathUtils.ForCompare(fullName); + if (!fullName.Contains(@":\")) return fullName; if (fullName.Length <= 200) return fullName; + fullName = PathUtils.ForCompare(fullName); // 保留文件名 string pathToKeep = ""; string pathToShorten = fullName;