How can I convert a chmod value like 755 so it fits in channelSftp setPermission(int permission, String path)?
I can’t figure it out. 🙁
EDIT:
Here it says I’m suppose to use a bitmask. But I’m not sure how that would be done either.
http://epaul.github.com/jsch-documentation/javadoc/com/jcraft/jsch/SftpATTRS.html#setPERMISSIONS(int)
You can get the Permission class from here:
http://svn.cyberduck.ch/tags/release-2-3/source/ch/cyberduck/core/Permission.java