Excluding folders in find

Following command applies the Opus flat view to all selected folders, which works fine.
But is there an easy way to exclude paths of subfolders, like \original? In this special case i would like to have only the contents of the selected folders, but not their subfolders.

@disablenosel
Find RECURSE NAME=* IN {allfilepath$}
set COLUMNS=path(2)

Don't use RECURSE.

That isn't Flat View, that's the Find command (for automating Tools > Find Files). They're quite different things. Both can show you a list of files in sub-dirs, but the other aspects of them are very different. Find gives you a snapshot while Flat View is a live list that will notice new files being added.

If you want to filter things out of what {allfilepath$} is passing into the Find command, you could add a line above that which deselects the things you don't want, via the Select command.

Hmm, that doesn't seem to work, i still have the \original, \Lightroom, and \outtakes folders in the list. Hiding the folders via folder options also didn't work so far. I suppose, it's because the results folder is some kind of virtual one.

Sounds interesting, you mean something like SELECT DESELECT? Where would i insert that?

@disablenosel
Select PATTERN="(Original|Another Folder Name|And Another)" DESELECT
Find RECURSE NAME=* IN {allfilepath$}

Thanks Leo, but still not quite there. I have added two additional folders, like suggested in your example, but it looks like in the screenshot. Here's how i do it, i select a couple of collapsed folders (with those subfolders contained), and use the code from a button. So maybe i miss selecting the pattern in the first place.

What is your button code?

Which folders are you selecting?

Which do you want it to exclude?

(Why not just not select the ones you don't want? :))

The code is

@disablenosel
Select PATTERN="(Original|Outtakes|LR)" DESELECT
Find RECURSE NAME=* IN {allfilepath$}

I am selecting some folders from over 1400, containing the photo sessions. They all come in the "date format". The files i'd like to look at are those right in the top level, the ones i would like to exclude are all of those in the sub folders.

Good question. But with that many folders, how could i focus on, say, the top twenty ones, and then make the other ones invisible? The other folders contain either the "outtakes", or identical folders by name, which are actually the unprocessed original files, or other files. Therefore, i would see lots of doublettes in my (pseudo) flatview list.

My aim is, to filter out certain images/ratings, like four or five stars, from a given range of processed folders, instead to run a full scan on all 1400 session folders. We're working on updating thousands of ratings, so the task is, to somehow filter them out. Hence my idea, to make the folders in question flatview-ish, then sort by ratings and send them to some collections.

If you are after files, use NAME=*.* or NAME=*.jpg.

Well, i am rather after ratings, but from a certain range and a certain depth, which in this case is the top level. I already have something like

Find QUERY Bewertung:>=****

which would return the right images, only that i want to restrict the depth and range.

Select the folders you want to search and use Find with a filter:

Find FILTER NAME=MySuperFilter RECURSE=no IN {allfilepath$}

1 Like

That is not practicable, since adding something like a range of 30 folders, which are chronological, is not easy. The "add" list is sorted numerically, not by date. That would be some very cumbersome search, since the list starts with like one hundred "01"s, then one hundred "02"s, etc., all from different years. In that case i will stick to my pseudo flat view.