Skip to content

Commit

Permalink
use glob instead of directory for archiver to match the csv directory…
Browse files Browse the repository at this point in the history
… and not the zipfile itself
  • Loading branch information
Tuuleh committed Oct 19, 2018
1 parent 32ee119 commit 013b70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/zipCSVFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function zipCSVFiles(dir, filename) {
});

archive.pipe(output);
archive.directory(dir, false);
archive.glob('**/*.csv', { cwd: `${dir}` });
archive.finalize();

output.on('close', function() {
Expand Down

0 comments on commit 013b70b

Please sign in to comment.