-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Exclude pattern hack #51
Comments
Worked for me, thanks! |
Why don't you open a PR where you'd introduce a new option to do that under the hood? |
Here is a note from
So I just made a suggestion. But no one has left a comment since :-( |
Well, we could always create a "plugin" that simply returns that function of yours and use it with |
To be honest, I haven't commented yet, because I can't imagine how we could extend that idea to solve all variants of the problem in a maintainable way. Some notes about the syntax from node-glob:
Thus there are some expressions to deal with:
|
I think a call like The intention of my hack was to make the "obvious" thing happen, but I agree it is not universal and only works with simple patterns. The universal solution would be to make The issue lays in the implementation: I think the algo should be changed if we want to solve this issue. |
I find the current behavior confusing as well. What about making sure that after some files are whitelisted, their parent directories would not be deleted as well? Makes sense for a feature suggestion? |
Hi @duzun, I have the problems with the nested folder and how can apply your solution for this problem or we have another solution for this. Structure: Test folder How can I delete the Test folder without delete the node & bower folder. My setting doesn't work
Thanks, |
I've wrote a function to simplify writing exclude pattern, due to the fact that
**
matches all children and the parent.Here is my function:
I don't pretend this is a complete/nice solution, but it might be a starting point to finding one!
Comments ?
The text was updated successfully, but these errors were encountered: