1 | static String _userHome; |
2 | static String userHome() { |
3 | if (_userHome == null) |
4 | ret actualUserHome(); |
5 | ret _userHome; |
6 | } |
7 | |
8 | static File userHome(S path) { |
9 | ret new File(userDir(), path); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 21 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, nazvggbglmsf, odhhsrjjbcgr, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
ID | Author/Program | Comment | Date |
---|---|---|---|
172 | #1000604 (pitcher) | 2015-08-18 00:49:43 | |
163 | #1000610 (pitcher) | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { static String _userHome; static String userHome() { if (_userHome == null) { /*if (android) _userHome = ((File) call(androidContext, "getFilesDir")).getAbsolutePath(); else*/ _userHome = System.getProperty("user.home"); //System.out.println("userHome: " + _userHome); } return _userHome; } }} | 2015-08-18 00:49:25 |
Snippet ID: | #1000569 |
Snippet name: | userHome (TODO: is this ok for Android?) |
Eternal ID of this version: | #1000569/2 |
Text MD5: | f2f9ebb4a9a07fe82453eeee22563569 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-10 15:28:49 |
Source code size: | 197 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 1171 / 8679 |
Version history: | 1 change(s) |
Referenced in: | [show references] |