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

3
LINES

< > BotCompany Repo | #1032271 // userDir_oneOf - return first one that exists

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

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

static File userDir_oneOf(S... names) {
  ret oneOfTheFilesInDir(userDir(), names);
}

Author comment

Began life as a copy of #1029948

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032271
Snippet name: userDir_oneOf - return first one that exists
Eternal ID of this version: #1032271/1
Text MD5: 714df0c41d416298bc525e5b2f7ca2e3
Transpilation MD5: 1157ef7440d5a37f7dea819da2bf31fa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-25 01:50:05
Source code size: 87 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 218
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1032288 - userDir_oneOf_createFirstIfNone - return first one that exists, or first in list if none found