From 5988d2c9d9591125d8d8abce6a12b82f420ffc13 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Sun, 25 Jul 2021 16:20:26 -0400 Subject: [PATCH] Update lib/internal/fs/utils.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michaƫl Zasso --- lib/internal/fs/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js index 7befa232e76712..212a10fd7c6057 100644 --- a/lib/internal/fs/utils.js +++ b/lib/internal/fs/utils.js @@ -744,7 +744,7 @@ const validateCopyOptions = hideStackFrames((options) => { validateBoolean(options.errorOnExist, 'options.errorOnExist'); validateBoolean(options.force, 'options.force'); validateBoolean(options.preserveTimestamps, 'options.preserveTimestamps'); - if (options.filter) { + if (options.filter !== undefined) { validateFunction(options.filter, 'options.filter'); } return options;