code: public void chgrp(String gid, String path) throws SftpStatusException,
  			SshException {
  		String actual = resolveRemotePath(path);
  
  		SftpFileAttributes attrs = sftp.getAttributes(actual);
  		attrs.setGID(gid);
  		sftp.setAttributes(actual, attrs);
  
  	}
docs: <p>
  Sets the group ID for the file or directory.
  </p>
  
  @param gid
  the numeric group id for the new group
  @param path
  the path to the remote file/directory
  
  @throws SftpStatusException
  @throws SshException