public void setPermissions ( UnsignedInteger32 permissions ) { this . permissions = permissions ; // Set the flag if ( permissions != null ) { flags |= SSH_FILEXFER_ATTR_PERMISSIONS ; } else { flags ^= SSH_FILEXFER_ATTR_PERMISSIONS ; } }
Set the permissions of the file . This value should be a valid mask of the permissions flags defined within this class .