Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1011943 // scpMkdir - make directory via SCP

JavaX fragment (include)

static void scpMkdir(S user, S host, S dir) ctex {
  final SSHClient client = sshLogin(user, host);
  try {
    print("Making directory on " + user + "@" + host + ": " + dir);
    client.newSFTPClient().mkdirs(dir);
  } finally {
    sshDisconnect(client);
  }
}

Author comment

Began life as a copy of #1011899

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011943
Snippet name: scpMkdir - make directory via SCP
Eternal ID of this version: #1011943/4
Text MD5: 7c12a8b71eb81fa9e8fa68c308768468
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-27 22:38:26
Source code size: 272 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 570 / 594
Version history: 3 change(s)
Referenced in: [show references]