0

Currently, to check for a file whether exists, I use

if (file.isFile())

It works so far.

I was wondering, is there any edge case, which I should check the file existence by using

if (file.isFile() && file.exists())
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875

0 Answers0