We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb61bfe commit 5988d2cCopy full SHA for 5988d2c
lib/internal/fs/utils.js
@@ -744,7 +744,7 @@ const validateCopyOptions = hideStackFrames((options) => {
744
validateBoolean(options.errorOnExist, 'options.errorOnExist');
745
validateBoolean(options.force, 'options.force');
746
validateBoolean(options.preserveTimestamps, 'options.preserveTimestamps');
747
- if (options.filter) {
+ if (options.filter !== undefined) {
748
validateFunction(options.filter, 'options.filter');
749
}
750
return options;
0 commit comments