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

11
LINES

< > BotCompany Repo | #1013994 - firstFileThatExists - synonym of oneOfTheFiles - return first one that exists

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

Libraryless. Click here for Pure Java version (2752L/16K).

static File firstFileThatExists(S... paths) {
  ret oneOfTheFiles(paths);
}

static File firstFileThatExists(File... files) {
  ret oneOfTheFiles(files);
}

static File firstFileThatExists(Iterable<File> files) {
  ret oneOfTheFiles(files);
}

Author comment

Began life as a copy of #1010488

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1013994
Snippet name: firstFileThatExists - synonym of oneOfTheFiles - return first one that exists
Eternal ID of this version: #1013994/3
Text MD5: 16eb547d694f8dc9b51139e56093a15a
Transpilation MD5: 8c31414bc6303b4dd3ab04e89d78e79d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-02-09 10:34:22
Source code size: 252 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 261
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1013994 & http://1013994.tinybrain.de