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

8
LINES

< > BotCompany Repo | #1019994 // listLocalSnippets

JavaX fragment (include)

1  
static L<Snippet> listLocalSnippets() {
2  
  ret map(filesInDirWithExtension(localSnippetsDir(), ".text"), func(File f) -> Snippet {
3  
    S id = fsI(parseFirstLong(f.getName()));
4  
    Snippet s = new(id, getFileInfoField(f, "title"), md5OfFile(f));
5  
    s.type = snippetTypeName(localSnippetType(id));
6  
    ret s;
7  
  });
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019994
Snippet name: listLocalSnippets
Eternal ID of this version: #1019994/7
Text MD5: c220058746ba0115c92e1c492188f968
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-16 15:27:32
Source code size: 321 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 325 / 363
Version history: 6 change(s)
Referenced in: [show references]