fix: don't create unnecessary folders when extracting ZIPs
This commit is contained in:
parent
03e454b71d
commit
7f62de3854
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user