problem description
there are blocks in the project that need to be unzipped to process the file, and the code is now asynchronous. The return is empty when traversing the folder, how to change it to the synchronization code
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
var fs = require ("fs");
var unzip = require (" unzip");
fs.createReadStream ("/ home/app/yyzz/zip/1.zip") .pipe (unzip.Extract ({path:"/ home/app/yyzz/image/"}));