chmod exception on windows
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <OF19098398.46A5B8C4-ON85256EAF.00464F8C-85256EAF.004A00A2@colinx.com> |
I am using sshtools to sftp to Windows. When the SftpClient puts a file
that does not already exist on the remote file system, it calls chmod to
set the permissions of the new file. The put call throws the following
exception:
java.io.IOException: The network request is not supported.
at
com.sshtools.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(Unknown
Source)
at
com.sshtools.j2ssh.sftp.SftpSubsystemClient.setAttributes(Unknown Source)
at
com.sshtools.j2ssh.sftp.SftpSubsystemClient.changePermissions(Unknown
Source)
at com.sshtools.j2ssh.SftpClient.chmod(Unknown Source)
at com.sshtools.j2ssh.SftpClient.put(Unknown Source)
at com.sshtools.j2ssh.SftpClient.put(Unknown Source)
I have considered catching exceptions with the corresponding error code
but I am afraid that will be too general a measure and that it will cause
me to ignore real problems. Has anyone else dealt with this? Is the only
work-around to modify the source?