|
@@ -363,8 +363,14 @@ public class ToInfraredServiceImpl extends BaseServiceImpl<ToInfraredMapper, ToI
|
|
String fileName_without_suffix = removeFileExtension(fileName);
|
|
String fileName_without_suffix = removeFileExtension(fileName);
|
|
|
|
|
|
Path path = Paths.get(resourcePath);
|
|
Path path = Paths.get(resourcePath);
|
|
- Path dirPath = path.resolveSibling(fileName_without_suffix + BizConstant.UNZIP_SUFFIX);
|
|
|
|
- return dirPath.toString();
|
|
|
|
|
|
+ File file = new File(path.toString());
|
|
|
|
+ if(file.isDirectory()) {
|
|
|
|
+ return path.toString();
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ Path dirPath = path.resolveSibling(fileName_without_suffix + BizConstant.UNZIP_SUFFIX);
|
|
|
|
+ return dirPath.toString();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public String getTrainInputPath(SysOssVo ossEntity) {
|
|
public String getTrainInputPath(SysOssVo ossEntity) {
|