-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
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
Filter is not working #130
Comments
This happens because ncp also applies the filter to directories. So, in your example, the filter will first be applied to It would be nice to either change the behaviour of the filter to not apply to directories or to add another option (say, |
So what is the solution here? When you add folder name to the regexp it will copy all files within. |
well i managed to stumble upon the same issue and my take on that was like in answer to SO: node ncp filter not working hope it comes useful to someone |
Looking at the source code it seems like the filter function takes in a function too, I am using it like this to copy only .css files
|
Here is my example, I've set it up based on the documentation but can't get it to work. In this example index.html from folder1 should be copied to folder2.
node -v
v8.9.4
The text was updated successfully, but these errors were encountered: