|
@@ -112,14 +112,15 @@ public class SceneRepairController {
|
|
|
String path = sceneProExt.getDataSource();
|
|
|
log.info("计算结果路径:" + path + "/caches/images");
|
|
|
List<String> imagesList = FileUtil.listFileNames(path + "/caches/images");
|
|
|
-
|
|
|
- String imagesCachePath = "/mnt/4Dkankan/scene/" + num;
|
|
|
+ String cachedImagesPath = String.format(ConstantFilePath.SCENE_CACHE_IMAGES, num);
|
|
|
String visionPath = path + "/results/vision.txt";
|
|
|
List<String> panoramaImageList = SceneUtil.getPanoramaImageList(visionPath);
|
|
|
- imagesList.stream().forEach(srcPath -> {
|
|
|
- if(panoramaImageList.contains(srcPath)){
|
|
|
- log.info("源文件:{}, 目标文件:{}", srcPath, srcPath.replace(path, imagesCachePath));
|
|
|
- cn.hutool.core.io.FileUtil.copy(srcPath, srcPath.replace(path, imagesCachePath), true);
|
|
|
+ imagesList.stream().forEach(fileName -> {
|
|
|
+ if(panoramaImageList.contains(fileName)){
|
|
|
+ String srcPath = path + "/caches/images/" + fileName;
|
|
|
+ String targetPath = cachedImagesPath + fileName;
|
|
|
+ log.info("源文件:{}, 目标文件:{}", srcPath, targetPath);
|
|
|
+ cn.hutool.core.io.FileUtil.copy(srcPath, targetPath, true);
|
|
|
}
|
|
|
});
|
|
|
return ResultData.ok();
|