|
@@ -220,4 +220,21 @@ public class SceneCommonService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ public void delLink(String path) {
|
|
|
+ String panPath = path +"/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";
|
|
|
+ if(new File(linkPath).exists()){
|
|
|
+ org.apache.commons.io.FileUtils.deleteQuietly(new File(linkPath));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|