private static boolean rmDir(final File d) {
		final File[] listFiles = d.listFiles();
		for(final File f : listFiles) {
			final String name = f.getName();
			if((name.compareTo(".")!=0)&&(name.compareTo("..")!=0)) {
				if(f.isDirectory()) {
					return false;
				}
			}
		}
		for(final File f : listFiles) {
			final String name = f.getName();
			if((name.compareTo(".")!=0)&&(name.compareTo("..")!=0)) {
				f.delete();
			}
		}
		d.delete();
		return true;
	}