From a9bebdd7f07a25f4dbfa61fdd34007d30bf3d6fa Mon Sep 17 00:00:00 2001 From: 4nshuman Date: Sun, 6 Oct 2024 15:26:26 +0530 Subject: [PATCH] fixed typo --- src/gui/src/UI/UIItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/src/UI/UIItem.js b/src/gui/src/UI/UIItem.js index bac63d010..49adddfd0 100644 --- a/src/gui/src/UI/UIItem.js +++ b/src/gui/src/UI/UIItem.js @@ -1201,11 +1201,11 @@ function UIItem(options){ html: i18n('unzip'), onClick: async function(){ const zip = new JSZip(); - let filPath = $(el_item).attr('data-path'); + let filePath = $(el_item).attr('data-path'); let file = puter.fs.read($(el_item).attr('data-path')); zip.loadAsync(file).then(async function (zip) { - const rootdir = await puter.fs.mkdir(path.dirname(filPath) + '/' + path.basename(filPath, '.zip'), {dedupeName: true}); + const rootdir = await puter.fs.mkdir(path.dirname(filePath) + '/' + path.basename(filePath, '.zip'), {dedupeName: true}); Object.keys(zip.files).forEach(async function (filename) { if(filename.endsWith('/')) await puter.fs.mkdir(rootdir.path +'/' + filename, {createMissingParents: true});