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
  • 48,324
  • 124
  • 436
  • 828

0 Answers0