if (subPath.endsWith("/")) {
IPath destinationPath = new Path(subPath).makeRelativeTo(sourcePrefix);
IFolder folder = destination.getFolder(destinationPath);
if (!folder.exists())
folder.create(true, true, null);
copyBundleEntries(sourceBundle, subPath, sourcePrefix, destination, progress.newChild(1, SubMonitor.SUPPRESS_NONE));
progress.setWorkRemaining(--work);
} else {
copyBundleEntry(sourceBundle, subPath, sourcePrefix, destination, progress.newChild(1, SubMonitor.SUPPRESS_NONE));
progress.setWorkRemaining(--work);
}