private void sendSETSTAT(byte[] path, SftpATTRS attr) { //throws Exception{ packet.reset(); putHEAD(SSH_FXP_SETSTAT, 9+path.Length+attr.Length()); buf.putInt(seq++); buf.putString(path); // path attr.dump(buf); session.write(packet, this, 9+path.Length+attr.Length()+4); }
private void sendMKDIR(byte[] path, SftpATTRS attr) { //throws Exception{ packet.reset(); putHEAD(SSH_FXP_MKDIR, 9+path.Length+(attr!=null?attr.Length():4)); buf.putInt(seq++); buf.putString(path); // path if(attr!=null) attr.dump(buf); else buf.putInt(0); session.write(packet, this, 9+path.Length+(attr!=null?attr.Length():4)+4); }
private void sendSETSTAT(String path, SftpATTRS attr) { packet.reset(); putHEAD(SSH_FXP_SETSTAT, 9 + path.Length + attr.Length()); buf.WriteInt(seq++); buf.WriteString(path); // path attr.dump(buf); session.write(packet, this, 9 + path.Length + attr.Length() + 4); }