wei
wei

Reputation: 21

How to use node-archiver in windows

Code from official documentation:

// append files from a sub-directory, putting its contents at the root of archive
archive.directory('subdir/', false);

How do I need to change 'subdir/' in windows environment:

archive.directory('F:/dir', false);

But if I write like this, it will give an error。

error: input source must be valid Stream or Buffer instance

Upvotes: 0

Views: 108

Answers (0)

Related Questions