流程节点运行时设置自动或者手动
支持用户定自定义文件选择
This commit is contained in:
@@ -339,8 +339,8 @@ public interface IDataFileService {
|
||||
|
||||
/**
|
||||
* 批量下载指定文件夹到本地目录
|
||||
* @param downloadDirId
|
||||
* @param basePath
|
||||
* @param downloadDirId downloadDirId = /数据输出/ 的dirID
|
||||
* @param basePath /home/simulation/projectNode/演示项目-2025-12-18/T01/软包电池外观检测机/托盘上料&下料工位/结构/上料小车静力学分析/算例_V1/Hypermesh/数据输出/
|
||||
* @param fileRegularStr 用于过滤文件的正则表达式
|
||||
*/
|
||||
default SdmResponse downloadFolderToLocal(Long downloadDirId, String basePath, String fileRegularStr) throws Exception {return null;}
|
||||
|
||||
@@ -2682,7 +2682,7 @@ public class MinioFileIDataFileServiceImpl implements IDataFileService {
|
||||
}
|
||||
}
|
||||
|
||||
// 构建本地文件路径:basePath + 相对路径
|
||||
// 构建本地文件路径:localBaseDir + relativePath
|
||||
Path localFilePath = localBaseDir.resolve(relativePath).normalize();
|
||||
|
||||
// 安全校验:防止路径穿越(例如 relativePath 含 ../../)
|
||||
|
||||
Reference in New Issue
Block a user