Merge pull request #817 from flowln/zip_ensure_path

Don't create unnecessary folders when extracting ZIPs
This commit is contained in:
Ezekiel Smith 2022-06-22 01:13:23 +10:00 committed by GitHub
commit 964151d9c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ nonstd::optional<QStringList> MMCZip::extractSubDir(QuaZip *zip, const QString &
QString path;
if(name.contains('/') && !name.endsWith('/')){
path = name.section('/', 0, -2) + "/";
FS::ensureFolderPathExists(path);
FS::ensureFolderPathExists(FS::PathCombine(target, path));
name = name.split('/').last();
}