From 9e1ba53153f981a77984ae64de401b6711026e83 Mon Sep 17 00:00:00 2001 From: wind <417079820@qq.com> Date: Mon, 30 Nov 2020 16:46:05 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e56edc99..4b78e862f 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ archive.directory('subdir/', 'new-subdir'); archive.directory('subdir/', false); // append files from a glob pattern -archive.glob('subdir/*.txt'); +archive.glob('file*.txt', {cwd:__dirname}); // finalize the archive (ie we are done appending files but streams have to finish yet) // 'close', 'end' or 'finish' may be fired right after calling this method so register to them beforehand