code: public static boolean zipContainsDir(String zipfile, String resources) {
  
          Enumeration<? extends ZipEntry> entries = null;
          try {
              entries = (new ZipFile(zipfile)).entries();
              while (entries != null && entries.hasMoreElements()) {
                  ZipEntry ze = entries.nextElement();
                  String name = ze.getName();
                  if (name.startsWith(resources + "/")) {
                      return true;
                  }
              }
          } catch (IOException e) {
              // TODO Auto-generated catch block
              // e.printStackTrace();
              LOG.error(e + "zipContainsDir error");
          }
  
          return false;
      }
docs: Check whether the zipfile contain the resources
  
  @param zipfile
  @param resources
  @return