I want to check if file exists in my package folder, but I don’t want to create a new one.

File file = new File(filePath);
if(file.exists()) 
     return true;

Does this code check without creating a new file?

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *