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:
parent
a0e28f1475
commit
ebcce9ae0a
|
@ -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 );
|
wxTempFileOutputStream outputFileStream( fullname );
|
||||||
|
|
||||||
if( CopyStreamData( *archiveStream, outputFileStream, entry->GetSize() ) )
|
if( CopyStreamData( *archiveStream, outputFileStream, entry->GetSize() ) )
|
||||||
|
|
Loading…
Reference in New Issue