Warning: session_start(): open(/var/lib/php/sessions/sess_7lurv44hdt184or13levbm2s3b, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
fileExists - also true for a directory [1007362]

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