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())
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())