Skip to content

Commit

Permalink
SAK-33775 - Fix empty folders added to zip in Resources (sakaiproject…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmerino authored and ern committed Dec 21, 2017
1 parent 371e62e commit 98fe27f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,9 @@ private void storeContentCollection(String rootId, ContentCollection collection,
*/
private void storeEmptyFolder(String rootId, ContentCollection resource, ZipOutputStream out) throws Exception {
String folderName = resource.getId().substring(rootId.length(),resource.getId().length());
ZipEntry zipEntry = new ZipEntry(folderName+Entity.SEPARATOR);
ZipEntry zipEntry = new ZipEntry(folderName);
out.putNextEntry(zipEntry);
out.closeEntry();
}

/**
Expand Down

0 comments on commit 98fe27f

Please sign in to comment.