标签: 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` });
我已经尝试使用文件压缩文件夹,但它有压缩文件,但是当提取此文件时,只给出/ *文件,只有父文件夹压缩/ *,我该怎么办?