Libraryless. Click here for Pure Java version (899L/7K/21K).
1 | !752 |
2 | |
3 | answer { |
4 | if "list all files" { |
5 | File base = javaxDataDir(); |
6 | S basePath = base.getAbsolutePath(); |
7 | L<File> files = findAllFiles(base); |
8 | |
9 | new L<S> l; |
10 | for (File f : files) |
11 | if (!f.isDirectory()) { |
12 | S size = rpad(formatDouble(toM_double(f.length()), 1) + " M", 8); |
13 | l.add(size + " " + substring(f.getAbsolutePath(), l(basePath))); |
14 | } |
15 | |
16 | ret slackSnippet(fromLines(l)); |
17 | } |
18 | } |
Began life as a copy of #1002584
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: | #1002636 |
Snippet name: | List All Files - hopefully nothing sensitive in there |
Eternal ID of this version: | #1002636/1 |
Text MD5: | 4f114cb51a587f8efad51d50922edd7b |
Transpilation MD5: | d8ec45a64ece62b9c7983dbaf72c0e70 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-06 04:48:18 |
Source code size: | 448 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 871 / 1320 |
Referenced in: | [show references] |