From d20480b1da89b9950948115d17f20fd597d06917 Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Fri, 23 May 2025 16:17:06 +0200 Subject: [PATCH 1/2] Add an option to allow to follow the symlinks --- lib/core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core.js b/lib/core.js index 1bcf33af..7bce4ace 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. */ /** From 9004933e1e71599b1d9cb2280becd6df520d6536 Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Mon, 26 May 2025 12:40:16 +0200 Subject: [PATCH 2/2] Use correct options object --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index 7bce4ace..366c1cbb 100644 --- a/lib/core.js +++ b/lib/core.js @@ -592,7 +592,7 @@ export default class Archiver extends Transform { var globOptions = { stat: true, dot: true, - follow: this._options?.followSymLinks, + follow: this.options.followSymLinks, }; function onGlobEnd() { this._pending--;