Pārlūkot izejas kodu

added empty directory check and file creation

4nshuman 7 mēneši atpakaļ
vecāks
revīzija
a09dd29416
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/gui/src/helpers.js

+ 1 - 0
src/gui/src/helpers.js

@@ -2205,6 +2205,7 @@ window.unzipItem = async function(itemPath) {
                 } else {
                     fileName = fileItem;
                 }
+                fileName != "" && await puter.fs.write(rootdir.path + '/' + fileItem, fileData);
             });
         }
     });