我应该创建多个 ftpproxyclient 对象还是一个就足够了?因为它抛出 ftp busy processing file 错误:
ftp = new FtpProxyClient(this.getFTPServername(hrGroupName), this.ftpPort,
ftpUserName, getFTPPassword(hrGroupName));
ftp.setBinaryMode();
is = ftp.getFile(feedFileName);
//做一些处理并检查剩余文件:
for (int i = personHeadDTO.getValueN().intValueExact() + 2; i < sequenceNo.intValueExact(); i++) {
fileName = feedFileName
.replace(".", "_" + i + ".");
下面的代码抛出 ftp is busy 错误:
if(ftp.isFileExists(fileName)){
body1.append(fileName);
}
else{
body1.append(fileName+" (Not Available in archive folder).");
}
body1.append(newline);
}