智慧保安后台管理-外网项目备份
tangzy
2021-08-22 a97605f8ddbc32537a12f0e5ab6e6e81d43df48f
src/main/java/org/springblade/modules/FTP/monitor.java
@@ -80,6 +80,7 @@
         if (files.length==0){
            return false;
         }
         else {
         for (FTPFile file : files){
            String fileName = file.getName();
            String substring1 = fileName.substring(0, 1);
@@ -110,12 +111,14 @@
               }
               //删除本地文件
               MysqlCenlint.deletes(fileName);
                  MysqlCenlint.deletess(fileName);
               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));