Skip to content

Commit 1f0c729

Browse files
committed
fix local migration path bug
fix local migration path bug
1 parent 0e05d93 commit 1f0c729

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
-3 Bytes
Binary file not shown.

src/main/java/com/qcloud/cos_migrate_tool/utils/SystemUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public static String formatLocalPath(String localPath) throws IllegalArgumentExc
2929
if (SystemUtils.isWindowsSystem()) {
3030
absolutePath = absolutePath.replace('\\', '/');
3131
}
32-
if (localFile.isDirectory()) {
32+
33+
if (localFile.isDirectory() && !absolutePath.endsWith("/")) {
3334
absolutePath += "/";
3435
}
3536
return absolutePath;

0 commit comments

Comments
 (0)