1 | static F1<File, Map> itemToMap_fullFilePath(S mainColumnName) { |
2 | ret func(File f) -> Map { |
3 | litorderedmap( |
4 | mainColumnName := f.getPath(), |
5 | "Size" := f.isDirectory() ? "Directory" : toK(fileSize(f)) + " K") |
6 | }; |
7 | } |
Began life as a copy of #1019443
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019445 |
Snippet name: | itemToMap_fullFilePath |
Eternal ID of this version: | #1019445/3 |
Text MD5: | c0aeb4bcb2be5471038518e6780bb460 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-06 23:29:10 |
Source code size: | 235 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 312 / 350 |
Version history: | 2 change(s) |
Referenced in: | [show references] |