I'm writing some files to a folder.
But when I reuse that folder I want to delete every file in that directory. The problem is that I don't know if this directory actually exists or not.
final String fileDir = "myPath/someDir/; // If this dir exists, delete every file inside //Populate this dir ( I have this code)
File file = new File(fileDir);You can pass the String to file