Reputation: 21
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