Is there a way to do an advanced find to search a directory recursively that will return the folders only, of any folder that has a specific file type in it?
So if I search for .txt files, I would like a list of folders that include .txt files directly in that folder.
I did find this thread, which is similar, but I am dealing with thousands of files, so I would like it to be as smart as possible. I might scan a directory and find 200,000 files of that type in 10 folders, or in other projects, I might have 20,000 folders with 100 files in each. So I am trying to find a way to list the folders once, and not have to use external applications to filter the list down.