You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/05/27 08:46:01 UTC
[iotdb] 02/02: add separator
This is an automated email from the ASF dual-hosted git repository.
xiangweiwei pushed a commit to branch rewriteTool
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 0864580a24e7d7d2ff5f163e366bf3d386085e5f
Author: Alima777 <wx...@gmail.com>
AuthorDate: Fri May 27 16:44:21 2022 +0800
add separator
---
rewriteBadFile/src/main/java/org/apache/iotdb/RewriteBadFileTool.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rewriteBadFile/src/main/java/org/apache/iotdb/RewriteBadFileTool.java b/rewriteBadFile/src/main/java/org/apache/iotdb/RewriteBadFileTool.java
index 24cf25d94a..e47c064534 100644
--- a/rewriteBadFile/src/main/java/org/apache/iotdb/RewriteBadFileTool.java
+++ b/rewriteBadFile/src/main/java/org/apache/iotdb/RewriteBadFileTool.java
@@ -112,7 +112,7 @@ public class RewriteBadFileTool {
printBoth(String.format("Start moving %s to backup dir.", badFilePath));
session.executeNonQueryStatement(String.format("move '%s' '%s'", badFilePath, backUpDirPath));
String[] dirs = badFilePath.split("/");
- String targetFilePath = backUpDirPath + dirs[dirs.length - 1];
+ String targetFilePath = backUpDirPath + File.separator + dirs[dirs.length - 1];
File targetFile = new File(targetFilePath);
// move mods file
File modsFile = new File(badFilePath + ModificationFile.FILE_SUFFIX);