fix: extractZip bug introduced by last commit

This commit is contained in:
DanyLE 2023-04-03 09:36:02 +02:00 committed by Dany LE
parent b30a2bb44c
commit 82f35f791e

View File

@ -2273,7 +2273,7 @@ namespace OS {
const files = []; const files = [];
for (const _name in zip.files) { for (const _name in zip.files) {
const name = _name.trimFromRight("/"); const name = _name.trimFromRight("/");
const file = zip.files[name]; const file = zip.files[_name];
if (file.dir) { if (file.dir) {
dirs.add(to + "/" + name); dirs.add(to + "/" + name);
} else { } else {