1 | static File programDir_mine; // set this to relocate program's data |
2 | |
3 | static File programDir() {
|
4 | ret programDir(getProgramID()); |
5 | } |
6 | |
7 | static File programDir(S snippetID) {
|
8 | bool me = sameSnippetID(snippetID, programID()); |
9 | if (programDir_mine != null && me) |
10 | ret programDir_mine; |
11 | File dir = new File(javaxDataDir(), formatSnippetIDOpt(snippetID)); |
12 | if (me) {
|
13 | S c = caseID(); |
14 | if (nempty(c)) dir = newFile(dir, c); |
15 | } |
16 | ret dir; |
17 | } |
18 | |
19 | static File programDir(S snippetID, S subPath) {
|
20 | ret new File(programDir(snippetID), subPath); |
21 | } |
Began life as a copy of #1001043
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001052 |
| Snippet name: | programDir |
| Eternal ID of this version: | #1001052/7 |
| Text MD5: | ae8d79c9e8888b0c44ca6b41c6927ed3 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-01-19 17:14:29 |
| Source code size: | 564 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1417 / 5025 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |