I have directory structure like this
data |___ | abc |____incoming def |____incoming |____processed 123 |___incoming 456 |___i
By following answer for How to exclude a directory in find . command:
find . \( -name ".git" -o -name "node_modules" \) -prune -o -print