I am creating folder within a folder from java. Whenever the data loads, the directory should be reloaded with the new data. My code is:
String ResultPath = System.getProperty("user.home") + "\\Desktop\\Report";
new File(ResultPath).mkdir();
new File(ResultPath + "\\images").mkdir();
I have used :
FileUtils.deleteDirectory(new File(ResultPath));
in the if else loop to execute the same, but it is not displaying the desired output.