I'm looking for some API in ChannelSftp to control file permissions when I 
put() or mkdir() on the remote system. I found the private method 

private void sendMKDIR(byte[] path, SftpATTRS attr),

but the only thing that calls that method uses null for the second argument. I 
did not find something analogous for put(). Did I miss some API that gives me 
control over file permissions (presumably via an SftpATTRS) when I transfer 
files? 

Best I can do right now is to follow up with a call to chmod (which isn't that 
bad).

Thanks,

Dave

David Walend
The MathWorks
[email protected]



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to