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

8
LINES

< > BotCompany Repo | #1009986 // scpUploadFile

JavaX fragment (include)

1  
svoid scpUploadFile(S localFile, S user, S host, fS remotePath) {
2  
  scpUploadFile(newFile(localFile), user, host, remotePath);
3  
}
4  
5  
static void scpUploadFile(File localFile, S user, S host, fS remotePath) ctex {
6  
  print("Uploading file: " + f2s(localFile));
7  
  scpUploadWithMkdirs(user, host, remotePath, fileSize(localFile), newFileInputStream(localFile));
8  
}

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: 509 / 532
Version history: 4 change(s)
Referenced in: [show references]