I have files inside one folder and i want to download the folder form node js server. I try some code but it doesn't work. I get some examples about downloading (Downloading folder, How to zip folder )folder but they doesn't work for me or i did't understand them.
I have folder like:
    Allfilefolder
        -file1.js
        - file2.js
        -file3.js
I can download each file using:
app.get("/files/downloads", function(req,res){ 
      const fs = require('fs');
    var filepath = './Allfilefolder/file1.js'; 
    res.download(filepath ); 
});
But i don't know how to download the folder. any help please?
 
    