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

16
LINES

< > BotCompany Repo | #1011885 // Download Smart Bot's files from server (TODO: update for notebook server)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 9700K of libraries. Click here for Pure Java version (2052L/13K).

1  
!7
2  
3  
sS user = "root", host = "botcompany.de";
4  
sS progID = #1010745;
5  
6  
p {
7  
  set sshLogin_keepOpen;
8  
  File dir = programDir(progID);
9  
  File backupDir = countTillNewFile(newFile(dir, "backup"));
10  
  for (File f : listFilesOnly(dir))
11  
    renameFile(f, newFile(backupDir, f.getName()));
12  
    
13  
  for (RemoteResourceInfo info : scpLS(user, host, "JavaX-Data/" + fsI(progID)))
14  
    if (info.isRegularFile())
15  
      scpDownload(user, host, info.getPath(), dir);
16  
}

Author comment

Began life as a copy of #1011873

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: #1011885
Snippet name: Download Smart Bot's files from server (TODO: update for notebook server)
Eternal ID of this version: #1011885/9
Text MD5: 6b477628832c2fc4d2ba2290ff7deec9
Transpilation MD5: 883493d91ab4adbdcda6c3fa244fd552
Author: stefan
Category: javax / networking
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-02 16:36:35
Source code size: 464 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 582 / 1331
Version history: 8 change(s)
Referenced in: [show references]