I have directory structure like this
data |___ | abc |____incoming def |____incoming |____processed 123 |___incoming 456 |___i
-name only matches the filename, not the whole path. You want to use -path instead, for the parts in which you are pruning the directories like def/incoming.
-name
-path
def/incoming