filename = filename.substring(endIndex + 1);
}
JCRNodeWrapper target = ensureDir(parentName, currentUserSession);
if (zipentry.isDirectory()) {
target.createCollection(JCRContentUtils.escapeLocalNodeName(filename));
} else {
String contentType = JahiaContextLoaderListener.getServletContext().getMimeType(filename);
target.uploadFile(filename, zis, contentType);
}
result = true;