//package net.bible.service.common;
import java.io.File;
//
class CommonUtils {
static public boolean deleteDirectory(File path) {
if (path.exists()) {
if (path.isDirectory()) {
File[] files = path.listFiles();
for (int i = 0; i < files.length; i++) {
if (files[i].isDirectory()) {
deleteDirectory(files[i]);
} else {
files[i].delete();
}
}
}
boolean deleted = path.delete();
if (!deleted) {
}
return deleted;
}
return false;
}
}