chmod exception on windows

[email protected]
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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.