1
0
mirror of synced 2024-11-14 19:17:42 +01:00

store: Don't extract PaxHeader file

This commit is contained in:
WerWolv 2021-10-17 22:21:18 +02:00
parent 9b1c09818c
commit e3cf364903

View File

@ -77,6 +77,11 @@ namespace hex {
auto extractBasePath = this->m_downloadPath.parent_path() / this->m_downloadPath.stem();
while (mtar_read_header(&ctx, &header) != MTAR_ENULLRECORD) {
auto filePath = extractBasePath / fs::path(header.name);
if (filePath.filename() == "@PaxHeader") {
mtar_next(&ctx);
continue;
}
fs::create_directories(filePath.parent_path());
File outputFile(filePath.string(), File::Mode::Create);