System.err.println("Creating wiki directory " + args.wikiDir);
wikiDirFile.mkdir();
}
if(wikiDirFile.isDirectory()) {
for(int i = 0; i < wikiContent.size(); i++) {
WikiPageDescription wikiEntry = (WikiPageDescription)wikiContent.get(i);
File wikiFile = new File(args.wikiDir+ File.separator + "page_" + i +".xml" );
OutputStream wikioutstream = new FileOutputStream(wikiFile);
OutputStreamWriter wikiout = new OutputStreamWriter(wikioutstream);
DatabaseWikiPage content = _wiki.wiki().get(wikiEntry.identifier());
content.write(wikiout);
wikiout.close();
wikioutstream.close();
}
} else {