瀏覽代碼

Merge branch 'bug-eur-36825' into test

# Conflicts:
#	src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java
lyhzzz 2 年之前
父節點
當前提交
18b273155f
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java

+ 15 - 0
src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java

@@ -221,4 +221,19 @@ 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";
+                log.info("delLink--filePath:{}",linkPath);
+                org.apache.commons.io.FileUtils.deleteQuietly(new File(linkPath));
+            }
+        }
+    }
 }