if (dirName.endsWith(".zip")) return false; // direct the import to the
// unzip step first
// check for at least the index page file and the corresponding property
// file
String[] suffixes = { WikiManager.WIKI_FILE_SUFFIX, WikiManager.WIKI_PROPERTIES_SUFFIX };
File[] files = directory.listFiles(new SuffixFilter(suffixes));
if (files == null) {
return false;
}
boolean indexAvailable = false;
boolean indexPropAvailable = false;