use of com.enonic.xp.vfs.VirtualFile in project xp by enonic.
the class ExportReader method getNodeSource.
public VirtualFile getNodeSource(final VirtualFile nodeFolder) {
final VirtualFilePath nodeSourcePath = nodeFolder.getPath().join(SYSTEM_FOLDER_NAME, NODE_XML_EXPORT_NAME);
final VirtualFile nodeVF = nodeFolder.resolve(nodeSourcePath);
if (!nodeVF.exists()) {
throw new ImportNodeException("Missing node source, expected at: " + nodeVF.getPath());
}
return nodeVF;
}
Aggregations