Answers for "how to remove am entire directory with its contents using java"

1

delete contents of folder java

String[]entries = index.list();
for(String s: entries){
    File currentFile = new File(index.getPath(),s);
    currentFile.delete();
}
Posted by: Guest on April-14-2020

Code answers related to "how to remove am entire directory with its contents using java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language