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