1 | sbool applyPersistentMapLogFile_debug; |
2 | |
3 | static void applyPersistentMapLogFile(S progID, S persistenceName, Map map, bool deleteFile) {
|
4 | File f = persistentMapLogFile(progID, persistenceName); |
5 | applyPersistentMapLogFile(f, map, deleteFile); |
6 | } |
7 | |
8 | static void applyPersistentMapLogFile(File f, Map map, bool deleteFile) {
|
9 | if (applyPersistentMapLogFile_debug) |
10 | print("applyPersistentMapLogFile: Checking " + f);
|
11 | if (!f.exists()) ret; |
12 | for (O _l : scanLog_safeUnstructure(f)) pcall {
|
13 | L l = cast _l; |
14 | mapPut(map, first(l), second(l)); |
15 | } |
16 | if (deleteFile) f.delete(); |
17 | } |
Began life as a copy of #1010717
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: | #1010718 |
| Snippet name: | applyPersistentMapLogFile |
| Eternal ID of this version: | #1010718/5 |
| Text MD5: | d033ff20c7a65d42e7d49960591f3ee4 |
| Author: | stefan |
| Category: | javax / lists |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-10 16:37:50 |
| Source code size: | 597 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 738 / 771 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |