-
ftp.jar ftp jar包下载
资源介绍
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文件夹下的文件名
}
}