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