The virtial file system allows the same operations as you are may know form java.io but names and behavior is a bit different.
VFSContainer folder = (VFSContainer) wikiContainer.resolve(WIKI_FOLDER_NAME);if you are not shure whether it is a file or a folder you get an VFSItem as result of a resolve operatin and have to check with:
if (item instanceof VFSLeaf) {
VFSLeaf leaf = (VFSLeaf)item;
VFSContainer rootContainer = FileResourceManager.getInstance().getFileResourceRootImpl(ores);
VFSLeaf leaf = wikiContentContainer.createChildLeaf(filename); FileUtils.save(leaf.getOutputStream(false), content, "utf-8");