title: how to set chmod permission in java jsch channelsftp setPermission(int permission, String path)
body: <p>How can I convert a chmod value like 755 so it fits in channelSftp setPermission(int permission, String path)?</p>
  
  <p>I can't figure it out. :(</p>
  
  <p>EDIT:
  Here it says I'm suppose to use a bitmask. But I'm not sure how that would be done either.
  <a href="http://epaul.github.com/jsch-documentation/javadoc/com/jcraft/jsch/SftpATTRS.html#setPERMISSIONS(int" rel="nofollow">http://epaul.github.com/jsch-documentation/javadoc/com/jcraft/jsch/SftpATTRS.html#setPERMISSIONS(int</a>)</p>