zipdir与nodejs压缩文件与父文件夹

时间:2018-01-29 17:05:27

标签: node.js

zipdir('/path/to/be/zipped', { saveTo: '~/myzip.zip' }, function (err, buffer) {
  // `buffer` is the buffer of the zipped file
  // And the buffer was saved to `~/myzip.zip`
});

我已经尝试使用文件压缩文件夹,但它有压缩文件,但是当提取此文件时,只给出/ *文件,只有父文件夹压缩/ *,我该怎么办?

0 个答案:

没有答案