ref: 一些路径处理

This commit is contained in:
龙腾猫跃 committed 2026-05-07 18:28:17 +08:00
1 parent ffb79cf1eb
commit 0e8671a7af
2 files changed
+3 -11

No files matched your search

+2 -2
View File
@@ -64,8 +64,8 @@ public static class DirectoryUtils {
progressHandler?.Invoke(1);
return;
}
sourceDirName = PathUtils.WithoutLongPath(PathUtils.WithSeparator(sourceDirName, Path.DirectorySeparatorChar));
destDirName = PathUtils.WithoutLongPath(PathUtils.WithSeparator(destDirName, Path.DirectorySeparatorChar));
sourceDirName = PathUtils.WithoutLongPath(PathUtils.WithSeparator(sourceDirName)).Replace("/", @"\");
destDirName = PathUtils.WithoutLongPath(PathUtils.WithSeparator(destDirName)).Replace("/", @"\");
int doneCount = 0;
Lazy<int> totalCount = new(() => DirectoryUtils.GetFiles(sourceDirName).Count());
Logger.Trace($"复制文件夹:{sourceDirName} → {destDirName}");