public static void empty(String path) {
File file = new File(path);
File[] files = file.listFiles();
for (int i = files.length - 1; i >= 0; --i) {
if (files[i].isDirectory()) {
empty(files[i].getAbsolutePath());
if (files[i].listFiles().length == 0) {
System.out.println(files[i].getAbsolutePath());
}
}
}
}