Consider the following folder structure starting in some root folder
/root/
/root/.git
/root/node_modules
/root/A/
/root/A/stuff1/
/root/A/stuff2/
/root/A/node_modules/
/root/B/
/root/A/stuff1/
/root/A/stuff2/
/root/B/node_modules/
...
Now I am in /root
and I'd like to find all my own files inside it.
I have a small number of my own files and the huge number of files inside node_modules
and .git
.
Because of that, traversing node_modules
and filtering it out is unacceptable, as it takes too much time. I want the command to never enter the node_modules
or .git
folder.