Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in Java FTP by (200 points)
Hi,

We are connecting to a Serv U SFTP server running on windows . While using the mkDir method we are getting an exception , though the directory is created on the server.
java.io.IOException: Specified file is a directory.
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.A(Unknown Source)
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.setAttributes(Unknown Source)
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.changePermissions(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.chmod(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.mkdir(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.mkdir(Unknown Source)
at com.equens.nl.cordys.ac.sftp.client.SFTPClient.createDirectory(SFTPClient.java:516)
at com.equens.nl.cordys.ac.sftp.client.SFTPClient.main(SFTPClient.java:601)

In the SFTP server logs we see a normal activity.
Please advice on what could be wrong.

The directory does not exist previously.

Regards,
Sabyasachi..

1 Answer

0 votes
by (162k points)
For the information of readers, this has been resolved via email - we've issued a patch that will be included in the next release of edtFTPj/PRO. The problem was the chmod that is performed after the directory is created. A flag has been added that allows the chmod to be disabled.

Categories

...