Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.3k views
in Java FTP by (220 points)
SSHFTPClient ftp = new SSHFTPClient();
.
. setAutthentication ...
.

String[] filenames = ftp.dir("/");
or

FTPFile files[] = ftp.dirDetails("/");

produces the following errors (but works fine for path other than "/"):

com.enterprisedt.net.ftp.FTPException: File not found : /
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getAttributes(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.stat(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.A(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.dir(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.dir(Unknown Source)
-------------------------------------------------------------------------------------------------------
For the same ftp site and login
the above methods work fine if the object is: ftp = new FTPClient();

Please someone helps me on this.

Thanks in advance.

5 Answers

0 votes
by (162k points)
It's quite possible you may not be permitted to list the root directory.

Why not login and try dir("")
0 votes
by (220 points)
Thanks for the reply.

I tried: dir("") and also dir()
They both gave me the same error messages.

Using WinSCP, I login using same user and password (as SFTP). I could see all the files in the root directory ("/").
I think that shows I am permitted to list the root directory.
0 votes
by (162k points)
Ok, please email us a log file set to ALL level. support at enterprisedt dot com
0 votes
by (220 points)
I wish I saved the log file when we had this issue, so that I could send it to the enterprisedt support.

Our FTP server is: GlobalScape EFT Server v5.1.6. Recently, it is upgraded to v5.1.30
After the upgrade we started having the issue I have explained in the previous (above) postings.

We are using licensed edtftpj-pro Version: 1.5.4

Our works were badly affected by the issue and so, removed the FTP server upgrade and reinstalled the old version.
After that, file transactions start running smoothly without the said errors.

Could the problem be with the new version of our server? Or
Is it possible that the current edtftpj-pro version is not compatible with this new version of the server?

Thanks for your help.
0 votes
by (162k points)
The best thing to do here is to install a test version of Globalscape v5.1.30 and try it out. Send us the log file if you can replicated the problem.

Categories

...