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

7
LINES

< > BotCompany Repo | #1015322 // fileExtensionIs

JavaX fragment (include)

static bool fileExtensionIs(File f, S ext) {
  ret f != null && ewic(f.getName(), addPrefix(".", ext));
}

static bool fileExtensionIs(S ext, File f) {
  ret fileExtensionIs(f, ext);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015322
Snippet name: fileExtensionIs
Eternal ID of this version: #1015322/2
Text MD5: 13878f1d9a070d96aa816a0d7d32ebea
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-07 01:07:52
Source code size: 186 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 358 / 388
Version history: 1 change(s)
Referenced in: [show references]