| | |
| | | import java.io.InputStream; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.SocketException; |
| | | import java.net.URLEncoder; |
| | | import java.util.List; |
| | | |
| | | import static org.springblade.common.config.FtpConfig.*; |
| | |
| | | */ |
| | | @Component |
| | | public class Monitor { |
| | | |
| | | |
| | | |
| | | /** |
| | | * 读取文件(用户对象)单用户新增 |
| | |
| | | |
| | | // 设置编码格式 |
| | | ftp.setControlEncoding("GBK"); |
| | | System.out.println("ftpPathIn = " + ftpPathIn); |
| | | System.out.println("ftpPathInURLEncoder = " + ftpPathIn); |
| | | // 检验文件是否存在 |
| | | boolean ftpFile = ftp.changeWorkingDirectory(ftpPathIn); |
| | | System.out.println("检验文件是否存在 = " + ftpFile); |