We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs-extra
Hi,
Copy filter function called twice for same source and destination. I found a similar report for emptyDir, but couldn't see a case for copy.
emptyDir
copy
Is this expected for some reason?
Example:
// Below code outputs: 1 2, whereas I expected only 1. const { copy } = require("fs-extra"); let i = 1; copy("README.md", "README2.md", { filter: () => { console.log(i++); return true; }, });
The text was updated successfully, but these errors were encountered:
Ensure copy filter fn is not called more than needed
5d30a3c
Fixes #809
Ensure copy filter fn is not called more than needed (#883)
af35401
RyanZim
Successfully merging a pull request may close this issue.
fs-extra
version: 9.0.1Hi,
Copy filter function called twice for same source and destination. I found a similar report for
emptyDir
, but couldn't see a case forcopy
.Is this expected for some reason?
Example:
The text was updated successfully, but these errors were encountered: