Handle directory entries in Archive Project

ZIP archives may have entries that are only directories.  We should not
try to extract this entries (they have no length); instead, we merely
create the path and continue
This commit is contained in:
Seth Hillbrand 2021-05-28 15:41:21 -07:00
parent a0e28f1475
commit ebcce9ae0a
1 changed files with 4 additions and 0 deletions

View File

@ -139,6 +139,10 @@ bool PROJECT_ARCHIVER::Unarchive( const wxString& aSrcFile, const wxString& aDes
}
}
// Directory entries need only be created, not extracted (0 size)
if( entry->IsDir() )
continue;
wxTempFileOutputStream outputFileStream( fullname );
if( CopyStreamData( *archiveStream, outputFileStream, entry->GetSize() ) )