static L<File> earlierPartsOfLogFile(File file) { S name = file.getName() + ".part"; try { new Matches m; new TreeMap<Int, File> map; for (File p : listFiles(file.getParent())) pcall { S n = p.getName(); if (startsWith(n, name, m)) map.put(parseFirstInt(m.rest()), p); } ret valuesList(map); } catch print e { ret ll(); } }
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: | 491 / 570 |
Version history: | 2 change(s) |
Referenced in: | [show references] |