Ver Fonte

上传文件添加前缀分隔符

caixiaofeng há 10 meses atrás
pai
commit
31b132eb49

+ 1 - 1
flow-file/flow-file-biz/src/main/java/com/flow/utils/FileUtil.java

@@ -18,7 +18,7 @@ public class FileUtil {
         String fileName = file.getOriginalFilename();
         try {
             // 路径
-            String path = String.format("%s%s_%s", filePath, format, fileName);
+            String path = String.format("%s%s__%s", filePath, format, fileName);
             File dest = new File(path).getCanonicalFile();
             // 检测是否存在目录
             if (!dest.getParentFile().exists()) {