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

3
LINES

< > BotCompany Repo | #1029948 // oneOfTheFilesInDir - return first one that exists

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

Libraryless. Click here for Pure Java version (3088L/17K).

static File oneOfTheFilesInDir(File dir, S... names) {
  ret oneOfTheFiles(map(names, name -> newFile(dir, name)));
}

Author comment

Began life as a copy of #1010488

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029948
Snippet name: oneOfTheFilesInDir - return first one that exists
Eternal ID of this version: #1029948/1
Text MD5: a33439c187964b5b32a6d02c7cebba8a
Transpilation MD5: ece0602e21a81d90097c687369e194db
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-14 14:03:21
Source code size: 119 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 313
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1032271 - userDir_oneOf - return first one that exists