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

7
LINES

< > BotCompany Repo | #1007362 // fileExists - also true for a directory

JavaX fragment (include)

static bool fileExists(S path) {
  ret path != null && new File(path).exists();
}

static bool fileExists(File f) {
  ret f != null && f.exists();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1007362
Snippet name: fileExists - also true for a directory
Eternal ID of this version: #1007362/4
Text MD5: 55aafb026eff3a3977190989381c433e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-04 17:18:24
Source code size: 154 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 692 / 716
Version history: 3 change(s)
Referenced in: [show references]