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

7
LINES

< > BotCompany Repo | #1016306 // desktopDir - seems accurate for all 3 OSes

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3305L/18K).

1  
static File desktopDir() {
2  
  ret userDir_oneOf_createFirstIfNone("Desktop", "Schreibtisch");
3  
}
4  
5  
static File desktopDir(S sub) {
6  
  ret newFile(desktopDir(), sub);
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016306
Snippet name: desktopDir - seems accurate for all 3 OSes
Eternal ID of this version: #1016306/3
Text MD5: 6d347b4d8d9575288ae733d0fb531100
Transpilation MD5: 79b5ca641f9dcc0097a4b599cab4e265
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-25 13:22:20
Source code size: 169 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 421 / 520
Version history: 2 change(s)
Referenced in: [show references]