0

我正在实施 npm 存档器。我的挑战是,zip 被写入我目前拥有存档代码的文件中(覆盖)——这正常吗?我如何将它放到另一个目录或文件中?

output= fs.createWriteStream(path.dirname(`${_filename}/abc.zip`)
archive.glob('file*.txt' , {cwd: _dirname});
4

0 回答 0