This commit is contained in:
龙腾猫跃 committed 2026-05-12 23:55:23 +08:00
1 parent f2d4070b6a
commit 2b5fc810bd
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ public static class PathUtils {
/// </summary> /// </summary>
public static string ToShortPath(string fullName, bool keepFileName = false) { public static string ToShortPath(string fullName, bool keepFileName = false) {
if (string.IsNullOrEmpty(fullName)) return fullName; if (string.IsNullOrEmpty(fullName)) return fullName;
if (!fullName.Contains(":")) return fullName; if (!fullName.Contains(":") || fullName.Contains("://")) return fullName;
fullName = PathUtils.ForCompare(fullName); fullName = PathUtils.ForCompare(fullName);
if (fullName.Length <= 200) return fullName; if (fullName.Length <= 200) return fullName;
// 保留文件名 // 保留文件名