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

9
LINES

< > BotCompany Repo | #1004521 // listDirAwarenessStyle

JavaX fragment (include)

1  
static L<Map> listDirAwarenessStyle(File dir) {
2  
  ret map(func(File f) {
3  
    Map map = litmap("n", f.getName(), "dir", f.isDirectory());
4  
    if (f.isFile())
5  
      map.put("l", f.length());
6  
    map.put("m", f.lastModified());
7  
    ret map;
8  
  }, listFiles(dir));
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004521
Snippet name: listDirAwarenessStyle
Eternal ID of this version: #1004521/1
Text MD5: 8ee584fec55c4766a21c3a1ce28f8eed
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-19 16:12:01
Source code size: 269 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 477 / 499
Referenced in: [show references]