Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.5k views
in Java FTP by (820 points)
While using SecureFileTransferClient with FTP and SFTP, I found that the FTPFile.getPath() returned 2 different things. For the SFTP, it returned the path + filename, for the FTP it returned just the path. Is this a difference in server implementations that I will need to catch and correct regardless of method? Or is this an implementation difference in the underlying edtFTPj/PRO library? If the latter, is there a good reason why this is so?

3 Answers

0 votes
by (162k points)
This is a bug fixed in the forthcoming 3.7.1. Please send us an email if you'd like a prerelease to try out.
0 votes
by (820 points)
Thanks. Is it expected out soon? I think I'll wait if it is. Also, can you tell me what it the actual output will be? For SFTP will the behavior be like it is for FTP, with the getPath() being the path, and the getName() being the filename without the path?
0 votes
by (162k points)
We should release 3.7.1 within 2 weeks. The behaviour for SFTP will change to match that of FTP, i.e. getPath() will return the path only, without the filename.

Categories

...