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

22
LINES

< > BotCompany Repo | #1011387 // Make Symlinks in ~/JavaX-Data [dev.]

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

Download Jar. Libraryless. Click here for Pure Java version (4341L/28K).

1  
!7
2  
3  
sbool doIt;
4  
5  
p {
6  
  if (isWindows()) ret with print("No Symlinks on Windows");
7  
  
8  
  File base = javaxDataDir();
9  
  for (File dir : listDirs(base)) {
10  
    print("Dir found: " + dir);
11  
    S id;
12  
    if (isSnippetID(id = dir.getName())) {
13  
      S title = getSnippetTitle(id);
14  
      if (nempty(title)) {
15  
        S fullName = fileNameEncode(title) + " - " + psI(id);
16  
        print("Linking " + id + " to " + fullName);
17  
        if (doIt)
18  
          makeSymLink(dir, newFile(base, fullName));
19  
      }
20  
    }
21  
  }
22  
}

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: #1011387
Snippet name: Make Symlinks in ~/JavaX-Data [dev.]
Eternal ID of this version: #1011387/5
Text MD5: f1c19747c2a0df38c0d46b39df9d6a2a
Transpilation MD5: e0ffbda8b9ecad7a0dbef11b94c3a43c
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-27 17:40:19
Source code size: 525 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 781
Version history: 4 change(s)
Referenced in: [show references]