diff --git a/lib/core.js b/lib/core.js index 1bcf33af9..366c1cbb5 100644 --- a/lib/core.js +++ b/lib/core.js @@ -592,6 +592,7 @@ export default class Archiver extends Transform { var globOptions = { stat: true, dot: true, + follow: this.options.followSymLinks, }; function onGlobEnd() { this._pending--; @@ -799,6 +800,7 @@ export default class Archiver extends Transform { * @global * @property {Number} [statConcurrency=4] Sets the number of workers used to * process the internal fs stat queue. + * @property {Boolean} [followSymLinks=false] Sets whether to follow symlinks. */ /**