392 } 393 394 static boolean jtreg; 395 396 int errors; 397 398 /** 399 * Clean the contents of a directory. 400 */ 401 static boolean clean(File dir) { 402 boolean ok = true; 403 for (File f: dir.listFiles()) { 404 if (f.isDirectory()) 405 ok &= clean(f); 406 ok &= f.delete(); 407 } 408 return ok; 409 } 410 411 } 412 413 | 392 } 393 394 static boolean jtreg; 395 396 int errors; 397 398 /** 399 * Clean the contents of a directory. 400 */ 401 static boolean clean(File dir) { 402 boolean ok = true; 403 for (File f: dir.listFiles()) { 404 if (f.isDirectory()) 405 ok &= clean(f); 406 ok &= f.delete(); 407 } 408 return ok; 409 } 410 411 } |