Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1016537 // actualUserHome

JavaX fragment (include)

1  
static String actualUserHome_value;
2  
static String actualUserHome() {
3  
  if (actualUserHome_value == null) {
4  
    if (isAndroid())
5  
      actualUserHome_value = "/storage/emulated/0/";
6  
    else
7  
      actualUserHome_value = System.getProperty("user.home");
8  
  }
9  
  ret actualUserHome_value;
10  
}
11  
12  
static File actualUserHome(S sub) {
13  
  ret newFile(new File(actualUserHome()), sub);
14  
}

Author comment

Began life as a copy of #1000569

download  show line numbers  debug dex  old transpilations   

Travelled to 19 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, nazvggbglmsf, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1016537
Snippet name: actualUserHome
Eternal ID of this version: #1016537/3
Text MD5: c16df521bd094f14220503da188cd9a0
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-10 15:20:16
Source code size: 385 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 431 / 559
Version history: 2 change(s)
Referenced in: [show references]