static L<Map> listDirAwarenessStyle(File dir) { ret map(func(File f) { Map map = litmap("n", f.getName(), "dir", f.isDirectory()); if (f.isFile()) map.put("l", f.length()); map.put("m", f.lastModified()); ret map; }, listFiles(dir)); }
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: | 714 / 740 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |