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   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, ofpaelxlmzfo, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, 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: 366 / 361
Version history: 3 change(s)
Referenced in: [show references]

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