|
@@ -224,21 +224,15 @@ public class SceneCommonService {
|
|
|
public void delLink(String path) {
|
|
|
String panPath = path +"/panorama";
|
|
|
File file = new File(panPath);
|
|
|
- log.info("delLink--filePath:{}",path);
|
|
|
- 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));
|
|
|
- }
|
|
|
+ log.info("delLink--filePath:{}",linkPath);
|
|
|
+ org.apache.commons.io.FileUtils.deleteQuietly(new File(linkPath));
|
|
|
}
|
|
|
}
|
|
|
}
|