Ignore directories on search

If a directory has a number of sub-directories, is there a way to do a search on everything in the main directory except for a specific sub-directory?

I do a lot of such searches on a number of directories and there is an images directory in each one. Since what I am searching for is not in an image file, I would like to skip the images directory completely.

See this thread.

The last post in particular. You should be able to use

Subfolder: No Match: Name: "Images"

to tell Opus not to look inside any folder called "Images".

I must be missing something since I can't get it to work. I've tried:

location no match \Folder images

and

subfolder no match
location no match \Folder images

Would someone please point out what I am doing wrong?

You didn't say what your results were so it's hard to tell you what is wrong.

Did you also specify what you were searching for? You can filter things out of a search, but you must always search for something.

You just need

Subfolder: No Match
Name: Match: Folder images

[quote="kenalcock"]You didn't say what your results were so it's hard to tell you what is wrong.

Did you also specify what you were searching for? You can filter things out of a search, but you must always search for something.[/quote]It doesn't matter what I was searcing for. I just don't want the search to be performed on the files in the images directory. The result was that it did search the images directory.

[quote="nudel"]You just need

Subfolder: No Match
Name: Match: Folder images[/quote]Tried that too - still searches the images directory.

Can you post a screenshot showing the filter definition plus the unwanted matches?

Perhaps it might be best if you post a screenshot showing exactly what you have - there may be something obvious you've overlooked.

Here is a screenshot.

What about a screenshot showing the unwanted matches?

The Chinese have a proverb: "If you don't know where you are going, any road will get you there."

You have not told Opus to search for something, so it Opus will return nothing.

What you have done, is told Opus to exclude something from a search, which is not the same thing as telling Opus to search for something.

Your main clause Subfolder NO MATCH, tell Opus to exclude certain subfolders from your search. This clause has the child clause Name Match = Folder Images. These two statements together mean Opus will exclude anything that exists inside of Folder Images. But no where in the filter dialog have you told Opus what you are looking for.

Go back to the thread I linked above and see the screen grab of the working Filter I posted there. You will see one MATCH clause and one NO MATCH clause. You must always have at least one match clause on a Search filter, otherwise you are searching for nothing.

Add another Parent clause and you must specify some criteria to look for. If you want to look for everything, the look for NAME MATCH *.

Still not working. I added the parent entry as mentioned and also tried change the Name Match images to Location Match \Folder images as shown in the other thread but any search I do still looks in the images directory. Here's my revised filter.

Here is my folder:

Date: 2006-11-06 19:33:34

Folder PATH listing for volume Temp_Files
Volume serial number is 3234-F800
T:\TESTING\TEST FOLDER
|   Root File 1.txt
|   Root File 2.txt
|   Root File 3.txt
|   
+---Folder A
|   |   File A.txt
|   |   
|   \---Subfolder A
|           Subfile A.txt
|           
+---Folder B
|   |   File B.txt
|   |   
|   \---Subfolder B
|           Subfile B.txt
|           
\---Folder C
    |   File C.txt
    |   
    \---Subfolder C
            Subfile C.txt

Attached is a screen grab of my working Subfolder filter.
I successfully find all .txt files, except those below Folder A.


In your screen grab above you have your search results going to the Output Window.

Did you open the Output Window to see your results?

Looks like this isn't an option I can use for some reason since my filter appears to be correct but it just doesn't work. Thanks for everyone trying to help. I do appreciate it.

Umm... Jack, by chance are the sub-folders you want to exclude simply named "images" - or are they in fact named "folder images"?

They are named images. I was using folder images since that is the way the examples were given but I tried with just images and it doesn't catch that either.

This is why everyone had been asking for a screengrab of your find results... a filter for "folder images" would of course never work if you folders are in fact named just "images".

So feel free to post a screenshot of the find results - set to show in 'Find Window" like Ken did...