code: public void setAttributes(String path, SftpFileAttributes attrs)
  			throws SftpStatusException, SshException {
  		try {
  			UnsignedInteger32 requestId = nextRequestId();
  
  			Packet msg = createPacket();
  			msg.write(SSH_FXP_SETSTAT);
  			msg.writeInt(requestId.longValue());
  			msg.writeString(path, CHARSET_ENCODING);
  			msg.write(attrs.toByteArray());
  
  			sendMessage(msg);
  
  			getOKRequestStatus(requestId);
  		} catch (SshIOException ex) {
  			throw ex.getRealException();
  		} catch (IOException ex) {
  			throw new SshException(ex, SshException.INTERNAL_ERROR);
  		}
  	}
docs: Sets the attributes of a file.
  
  @param path
  the path to the file.
  @param attrs
  the file attributes.
  @throws SftpStatusException
  , SshException