Here is the stack trace
[2004-12-03 13:31:34.9] com.enterprisedt.net.ftp.FTPException: temp.CSV.pgp: No such file or directory.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSoc
ket.java:725)
at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:1238)
at com.enterprisedt.net.ftp.FTPClient.getBinary(FTPClient.java:1496)
at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:1200)
Both versions of get
get(java.lang.String localPath, java.lang.String remoteFile)
( I use:-
ftpClient.get(localPath+ "/"+ remoteFileName, remoteFileName);
)
AND
get(java.io.OutputStream destStream, java.lang.String remoteFile)
( I use:-
FileOutputStream fos = new FileOutputStream(localPath + "/" + remoteFileName);
ftpClient.get(fos, remoteFileName);
)
failed for me.