Uses 9724K of libraries. Click here for Pure Java version (9608L/54K).
1 | svoid scpUploadFileToDir(S localFile, S user, S host, fS remoteDir) { |
2 | scpUploadFile(newFile(localFile), user, host, remoteDir); |
3 | } |
4 | |
5 | static void scpUploadFile(File localFile, S user, S host, fS remoteDir) ctex { |
6 | print("Uploading file: " + f2s(localFile)); |
7 | scpUploadWithMkdirs(user, host, addSlash(remoteDir) + fileName(localFile), fileSize(localFile), newFileInputStream(localFile)); |
8 | } |
Began life as a copy of #1009986
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020483 |
Snippet name: | scpUploadFileToDir |
Eternal ID of this version: | #1020483/1 |
Text MD5: | e8ded6f3e9dfd17191371b0e873c6a13 |
Transpilation MD5: | 8480b13575574c4ecbc381cc7078a180 |
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:03:31 |
Source code size: | 398 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 329 / 421 |
Referenced in: | [show references] |