lyhzzz před 2 roky
rodič
revize
069206491a

+ 1 - 4
src/main/java/com/fdkankan/ucenter/controller/TestController.java

@@ -127,11 +127,8 @@ public class TestController extends BaseController {
                 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));
+                    org.apache.commons.io.FileUtils.deleteQuietly(new File(linkPath));
                         //FileUtil.del(linkPath);
-                    }
                 }
             }
         }