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

8
LINES

< > BotCompany Repo | #1009986 // scpUploadFile

JavaX fragment (include)

svoid scpUploadFile(S localFile, S user, S host, fS remotePath) {
  scpUploadFile(newFile(localFile), user, host, remotePath);
}

static void scpUploadFile(File localFile, S user, S host, fS remotePath) ctex {
  print("Uploading file: " + f2s(localFile));
  scpUploadWithMkdirs(user, host, remotePath, fileSize(localFile), newFileInputStream(localFile));
}

Author comment

Began life as a copy of #1009981

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: #1009986
Snippet name: scpUploadFile
Eternal ID of this version: #1009986/5
Text MD5: d73391087598151b5b82e8bbdcb1eee0
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-24 03:02:28
Source code size: 365 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 531
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020483 - scpUploadFileToDir