ftp.jar ftp jar包下载

su_ocean38 35 0 JAR 2020-07-26 02:07:17

FTPClient fc = new FTPClient(remoteHost); fc.login(user, password); fc.chdir(remoteOutPath); String[] fileNames = fc.dir(); if (fileNames != null || fileNames.length != 0) { for (int i = 0; i < fileNames.length; i++) { System.out.println(fileNames[i])); //得到ftp文件夹下的文件名 } }

用户评论
请输入评论内容
评分:
暂无评论