I'm using archiver to export a directory as a zip file in nodejs/node-webkit.
var file_system = require("fs")
var archiver = require("archiver")
var output = file_system.createWriteStream("files.zip")
var archive = archiver("zip")
output.on("close", function() {
console.log(archive.pointer() + " total bytes")
console.log("archiver has been finalized and the output file descriptor has closed.")
})
archive.on("error", function(err) {
throw err
})
archive.pipe(output)
archive.bulk([
{ expand: true, cwd: "./content/project/", src: ["**"], dest: "./content/project/"}
])
archive.finalize()
However I can't find anything on how to have the user set the destination on where the zip file should be exported using a traditional SaveFileDialog.
Does anyone know how I can have the user set the destination on where to export the zip file using a SaveFileDialog in node-webkit?