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

7
LINES

< > TinyBrain | #1007362 - fileExists

JavaX fragment (include)

static bool fileExists(S path) {
  ret new File(path).exists();
}

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

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1007362
Snippet name: fileExists
Eternal ID of this version: #1007362/2
Text MD5: 9440771d5f3a382fbe103eef929bad37
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-01 03:13:17
Source code size: 138 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 49 / 42
Version history: 1 change(s)
Referenced in: [show]