How to use node-archiver in windows

71 Views Asked by At

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

0

There are 0 best solutions below