if(entry.isDirectory()){ final File[] subFile=entry.listFiles(); for(int i=0;i<subFile.length;i++){ final String name=subFile[i].getName(); if(!name.equals(".") && !name.equals("..")){ System.err.println("Directory is not empty"); return; } } }  deleteOk=entry.delete();  if(!deleteOk){ System.err.println(entry + " does not deleted"); }
	public static void main(String[] args) throws Exception {		ParsedArguments cmdLine = HELP_INFO.parse(args);		final File entry = ARG_DIR.getFile(cmdLine);		if (entry.exists()) {			entry.delete();		} else {			System.err.println(entry + " does not exist");		}	}