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

7
LINES

< > BotCompany Repo | #1004072 // containsFile - two meanings

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

Libraryless. Click here for Pure Java version (5042L/28K).

sbool containsFile(File dir, S name) {
  ret new File(dir, name).exists();
}

sbool containsFile(Iterable<File> l, File f) {
  ret any(l, file -> sameFile(f, file));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004072
Snippet name: containsFile - two meanings
Eternal ID of this version: #1004072/3
Text MD5: 7a092da02b1ee6d979e3d7063290477a
Transpilation MD5: c4dcbd94cf4e7dffe7fd92c70d53511b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-27 21:32:22
Source code size: 173 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 523 / 603
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)