Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

AaronB

Posts

22

Joined

Sat Feb 05, 2011 11:28 am

Different getPath() FTP/SFTP from SecureFileTransferClient

by AaronB » Sat Mar 12, 2011 3:19 am

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?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Different getPath() FTP/SFTP from SecureFileTransferClie

by support2 » Sat Mar 12, 2011 10:14 am

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.
no avatar
User

AaronB

Posts

22

Joined

Sat Feb 05, 2011 11:28 am

by AaronB » Sat Mar 12, 2011 10:19 am

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?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Mon Mar 14, 2011 10:31 am

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.

Who is online

Users browsing this forum: No registered users and 105 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron