dmikester1D
Reactiflux3y ago
3 replies
dmikester1

dmikester1 – 03-42 May 1

I have some code that I think I need to promisify.
await compressFolder(PNGFolder, PNGFolder + '/slides.zip');
    while (!fs.existsSync(PNGFolder + '/slides.zip')) {
      console.log('Zip file does not exist');
    }
    

The
compressFolder
function is supposed to create that zip file. But when I run my code, it just sits and continuously outputs 'Zip file does not exist' in what looks like a forever loop.
Was this page helpful?