Ignore '__MACOSX' directories stored in ZIP files.

Note that this seems to duplicate functionality in ZipHandler; that code is in the process of being rewritten.
This commit is contained in:
Stephen Anthony 2018-09-04 10:17:55 -02:30
parent a780e9542e
commit 4edd626a3a
1 changed files with 3 additions and 0 deletions

View File

@ -140,7 +140,10 @@ bool FilesystemNodeZIP::getChildren(AbstractFSList& myList, ListMode mode,
while(zip.hasNext())
{
// Only consider entries that start with '_virtualPath'
// Ignore empty filenames and '__MACOSX' virtual directories
const string& next = zip.next();
if(BSPF::startsWithIgnoreCase(next, "__MACOSX") || next == EmptyString)
continue;
if(BSPF::startsWithIgnoreCase(next, _virtualPath))
{
// First strip off the leading directory