Transpiled version (5558L) is out of date.
// sorted by descending date
static L<File> conceptBackupFiles(S progID) {
ret conceptBackupFiles(programDir(progID));
}
static L<File> conceptBackupFiles(File dir) {
S regexp = "^(.*)\\.backup(20\\d\\d)(\\d\\d)(\\d\\d)-(\\d+)$";
new L<File> l;
for (File f : listFilesNotDirs(dir, newFile(dir, "backups"))) {
if (isEmpty(f)) continue;
S s = f.getName();
S originalName = regexpFirstGroup(regexp, s);
continue unless eq(originalName, "concepts.structure.gz");
l.add(f);
}
ret sortFilesByNameDesc(l);
}download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1016098 |
| Snippet name: | conceptBackupFiles |
| Eternal ID of this version: | #1016098/7 |
| Text MD5: | 8b9fd2b26132e137fa222972f8f99a1b |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2025-07-13 11:19:33 |
| Source code size: | 549 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 3229 / 3686 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |