return null;
}
List<String> lockedFiles = new ArrayList<String>();
for (String sItem:selection.getFiles()) {
VFSItem vfsItem = currentContainer.resolve(sItem);
if (vfsItem instanceof VFSLeaf) {
boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
lockedFiles.addAll(checkLockedFiles((VFSLeaf)vfsItem, currentContainer, ureq.getIdentity(), isAdmin));
}
}
if(!lockedFiles.isEmpty()) {
String msg = MetaInfoHelper.renderLockedMessageAsHtml(trans, null, lockedFiles);
List<String> buttonLabels = Collections.singletonList(trans.translate("ok"));
lockedFiledCtr = activateGenericDialog(ureq, trans.translate("lock.title"), msg, buttonLabels, lockedFiledCtr);
return null;
}
boolean fileNotExist = false;
for (String sItem:selection.getFiles()) {
VFSItem vfsItem = currentContainer.resolve(sItem);
if (vfsItem != null && (vfsItem instanceof VFSLeaf)) {
if (!doUnzip((VFSLeaf)vfsItem, currentContainer, ureq, wContr)) {
status = FolderCommandStatus.STATUS_FAILED;
break;
}