Maybe the problem is that isWritable() is never called before truncate?!
In the version 0.11 the method truncate() is called from the interface
SshFile. Depending on the implementation it can call isWritable() or not. In
the class NativeSshFile it is not called. The same counts for my
implementation, because I did copy it.
So one solution should be to call isWritable() in truncate as it is done in
createOutputStream(). I will test it.



--
View this message in context: 
http://apache-mina.10907.n7.nabble.com/SSHD-Problems-with-SFTP-tp42625p44100.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to