Skip to content
Permalink
Browse files
Merge pull request #10424 from JosJuice/android-export-empty-folders
Android: Include empty folders when exporting user data
  • Loading branch information
JMC47 committed Feb 1, 2022
2 parents 4d1e6ff + e97fd2f commit 44dabc6
Showing 1 changed file with 4 additions and 0 deletions.
@@ -320,6 +320,10 @@ private void exportUserData(ZipOutputStream zos, File input, @Nullable File path
{
exportUserData(zos, child, new File(pathRelativeToRoot, child.getName()));
}
if (children.length == 0 && pathRelativeToRoot != null)
{
zos.putNextEntry(new ZipEntry(pathRelativeToRoot.getPath() + '/'));
}
}
else
{

0 comments on commit 44dabc6

Please sign in to comment.