1 | static L<File> earlierPartsOfLogFile(File file) {
|
2 | S name = file.getName() + ".part"; |
3 | try {
|
4 | new Matches m; |
5 | new TreeMap<Int, File> map; |
6 | for (File p : listFiles(file.getParent())) pcall {
|
7 | S n = p.getName(); |
8 | if (startsWith(n, name, m)) |
9 | map.put(parseFirstInt(m.rest()), p); |
10 | } |
11 | ret valuesList(map); |
12 | } catch print e {
|
13 | ret ll(); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011607 |
| Snippet name: | earlierPartsOfLogFile - .part1.gz, ... |
| Eternal ID of this version: | #1011607/3 |
| Text MD5: | a9f6b744f320fb7a56d960b3ce37cf5b |
| Author: | stefan |
| Category: | javax / io |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-01 01:46:33 |
| Source code size: | 389 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 734 / 818 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |