src/main/java/org/springblade/modules/FTP/monitor.java
@@ -82,6 +82,9 @@ } for (FTPFile file : files){ String fileName = file.getName(); String substring1 = fileName.substring(0, 1); if (substring1.equals("n")){ System.out.println(substring1); //把文件下载到本地 FtpUtil.downloadFtpFile(ftpHost, ftpUserName, ftpPassword, ftpPort, ftpPath, localPath, fileName); // @@ -113,6 +116,7 @@ ftp.completePendingCommand(); return true; } } //InputStream is = ftp.retrieveFileStream(new String(file.getBytes("GBK"), FTP.DEFAULT_CONTROL_ENCODING));