Merge pull request #817 from flowln/zip_ensure_path
Don't create unnecessary folders when extracting ZIPs
This commit is contained in:
commit
964151d9c7
@ -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