question: public static void cleanupDir ( String dirPath , List < String > childdirs ) throws IOException { if ( childdirs == null || childdirs . size ( ) == 0 ) FileUtils . cleanDirectory ( new File ( dirPath ) ) ; else { for ( String cdir : childdirs ) FileUtils . cleanDirectory ( new File ( dirPath + "/" + cdir ) ) ; } }
target:  delete all the files/dirs in the given Directory but dont delete the dir itself.