This is an automated email from the ASF dual-hosted git repository.

justinchen pushed a commit to branch separator
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/separator by this push:
     new 482327f3439 fix
482327f3439 is described below

commit 482327f3439515fc76e74f3a6990c3d10253c8aa
Author: Caideyipi <[email protected]>
AuthorDate: Fri Feb 6 11:33:40 2026 +0800

    fix
---
 .../src/main/java/org/apache/iotdb/commons/utils/FileUtils.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java
index 595cd5e831c..139d08ef99b 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java
@@ -583,7 +583,7 @@ public class FileUtils {
   }
 
   public static String getIllegalError4Directory(final String path) {
-    if (path.equals(".") || path.equals("..") || path.contains("./") || 
path.contains(".\\")) {
+    if (path.equals(".") || path.equals("..") || path.contains("/") || 
path.contains("\\")) {
       return ILLEGAL_PATH_MESSAGE;
     }
     if (!WindowsOSUtils.isLegalPathSegment4Windows(path)) {

Reply via email to