|
@@ -844,27 +844,8 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
fYunFileServiceInterface.copyFileInBucket(sourcePath,targetPath);
|
|
|
File fileData = new File(SceneResourcePath.nasBasePath + sourcePath);
|
|
|
if(fileData.exists()){
|
|
|
- log.info("--------------------------"+ targetPath.contains("images"));
|
|
|
if(targetPath.contains("images")){
|
|
|
- String panPath = fileData.getPath() +"/panorama";
|
|
|
- File file = new File(panPath);
|
|
|
- log.info("delLink--filePath:{}",fileData.getPath());
|
|
|
- log.info("delLink--filePath:{}",file.exists());
|
|
|
- if(file.exists()){
|
|
|
- File[] files = file.listFiles();
|
|
|
- log.info("delLink--filePath:{}",files);
|
|
|
- log.info("delLink--filePath:{}",files.length);
|
|
|
- if(files == null || files.length == 0){
|
|
|
- return;
|
|
|
- }
|
|
|
- for (File file1 : files) {
|
|
|
- log.info("delLink--filePath:{}",file1.getPath());
|
|
|
- String linkPath =file1.getPath() + "/capture";
|
|
|
- if(new File(linkPath).exists()){
|
|
|
- org.apache.commons.io.FileUtils.deleteQuietly(new File(linkPath));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // sceneCommonService.delLink(SceneResourcePath.nasBasePath + sourcePath);
|
|
|
}
|
|
|
cn.hutool.core.io.FileUtil.copyContent(fileData,new File(SceneResourcePath.nasBasePath + targetPath),true);
|
|
|
}
|