fix: don't create unnecessary folders when extracting ZIPs

This commit is contained in:
flow 2022-06-19 22:03:02 -03:00
parent 03e454b71d
commit 7f62de3854
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

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