private void sendSETSTAT(byte[] path, SftpATTRS attr) { m_packet.reset(); putHEAD(SSH_FXP_SETSTAT, 9 + path.Length + attr.Length()); m_buffer.putInt(m_seq++); m_buffer.putString(path); // path attr.dump(m_buffer); m_session.write(m_packet, this, 9 + path.Length + attr.Length() + 4); }
private void sendMKDIR(byte[] path, SftpATTRS attr) { m_packet.reset(); putHEAD(SSH_FXP_MKDIR, 9 + path.Length + (attr != null ? attr.Length() : 4)); m_buffer.putInt(m_seq++); m_buffer.putString(path); // path if (attr != null) attr.dump(m_buffer); else m_buffer.putInt(0); m_session.write(m_packet, this, 9 + path.Length + (attr != null ? attr.Length() : 4) + 4); }