ResilientUtils 代码复用
This commit is contained in:
1 parent
b54a8f1683
commit
5c79bb8954
3 files changed
+14
-21
No files matched your search
@@ -25,6 +25,7 @@ public static class PathUtils {
|
||||
/// </summary>
|
||||
public static string ToShortPath(string fullName, bool keepFileName = false) {
|
||||
if (string.IsNullOrEmpty(fullName)) return fullName;
|
||||
if (!fullName.Contains(":")) return fullName;
|
||||
fullName = PathUtils.Normalize(fullName, false);
|
||||
if (fullName.Length <= 200) return fullName;
|
||||
|
||||
|
||||
Reference in new issue
Block a user