Skip to content

Commit 5988d2c

Browse files
Benjamin E. Coetargos
andauthored
Update lib/internal/fs/utils.js
Co-authored-by: Michaël Zasso <[email protected]>
1 parent fb61bfe commit 5988d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/fs/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ const validateCopyOptions = hideStackFrames((options) => {
744744
validateBoolean(options.errorOnExist, 'options.errorOnExist');
745745
validateBoolean(options.force, 'options.force');
746746
validateBoolean(options.preserveTimestamps, 'options.preserveTimestamps');
747-
if (options.filter) {
747+
if (options.filter !== undefined) {
748748
validateFunction(options.filter, 'options.filter');
749749
}
750750
return options;

0 commit comments

Comments
 (0)