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)

1  
static bool fileExists(S path) {
2  
  ret path != null && new File(path).exists();
3  
}
4  
5  
static bool fileExists(File f) {
6  
  ret f != null && f.exists();
7  
}

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: 684 / 710
Version history: 3 change(s)
Referenced in: [show references]