tangzy
2021-08-22 30436febfa0201f2e3f03eae09dae379fa7f8d70
src/main/java/org/springblade/modules/FTP/monitor.java
@@ -79,6 +79,7 @@
         if (files.length==0){
            return false;
         }
         else {
         for (FTPFile file : files){
            String fileName = file.getName();
            String substring1 = fileName.substring(0, 1);
@@ -113,11 +114,12 @@
               FtpUtil.deleteFile(ftpHost, ftpPort, ftpUserName, ftpPassword, "anbao/", fileName);
               //is.close();
               ftp.completePendingCommand();
               return true;
               }
            }
            return true;
         }
         //InputStream is = ftp.retrieveFileStream(new String(file.getBytes("GBK"), FTP.DEFAULT_CONTROL_ENCODING));
//         if (is == null || ftp.getReplyCode() == FTPReply.FILE_UNAVAILABLE) {