GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Can I show folders down to a certain level?


#1

For example, I may have:
Dir 1
--Dir 1a
--Dir 1b
--Dir 1c

Dir 2
--Dir 2a
--Dir 2b
--Dir 2c

Dir 3
--Dir 3a
--Dir 3b
--Dir 3c

In the lister, I would like to display the level 2 directories:
--Dir 1a
--Dir 1b
--Dir 1c
--Dir 2a
--Dir 2b
--Dir 2c
--Dir 3a
--Dir 3b
--Dir 3c

I could use flat view, but that takes a very long time to display as I would have to wait for all the file (>100,000) to display as well as 3rd level directories..


#2

Best way is probably to use the Find tool along with a Sub-Folder clause that rejects the folders you're not interesting.

Sub-Folder clauses tell Opus to stop looking below matching folders.

You might be able to use them with Flat View but I'm not sure if they work there. With Flat View it's possible that the listing is read and then filtered. (Either way, you'd need to enable the option to filter folders in Flat View under Prefs/Advanced/Misc.)


#3

[quote="leo"]Best way is probably to use the Find tool along with a Sub-Folder clause that rejects the folders you're not interesting.

Sub-Folder clauses tell Opus to stop looking below matching folders.

You might be able to use them with Flat View but I'm not sure if they work there. With Flat View it's possible that the listing is read and then filtered. (Either way, you'd need to enable the option to filter folders in Flat View under Prefs/Advanced/Misc.)[/quote]

I tried alternative 1:
Not sure if I understand.
Name match *
AND subclause match
----subfolder match

I was hoping this would only show the level 2 directories, but all the files were found as well

I tried alternative 2:

I assume that you meant Prefs/Misc./Advanced/ ?
I changed flat_view_folder_filters to true.

However the subfolder contents are still read.


#4

Your filter matches everything and won't filter anything out.

You have to tell Opus which sub-folders to exclude.

There's an example in this thread (the third screenshot):

resource.dopus.com/viewtopic.php ... der+clause

That excludes anything below subfolders called "old" (as well as requiring files to be called names like 01234.png, but that detail isn't important for what you want to do).

Another example in this thread (first screenshot):

resource.dopus.com/viewtopic.php ... der+clause

That matches all *.jpg files but doesn't look below directories with the Hidden attribute set.


#5

Unfortunately, filtering on name wouldn't work in my case. I have thousands of folders and subfolders, and they have "random" names. I just want to display all the 2nd level folders.


#6

You can specify that the folder's location does not have (say) three or more \ characters in it. That would limit how far down the Find operation would go without needing to name the folders.

e.g.

Sub-Folder No-Match:
-- Location Match [Use Wildcards] ***


#7

I really appreciate you trying to help!
Unfortunately, the names are random, no fixed length as 3 characters.

Is there some way to tell dopus to search only for folders below the current ones and then stop (i.e. find all 2nd level folders)?


#8

*** doesn't match three characters.

It matches these things (because they have at least two \ in them):

D:\Moo\Cow
C:\Program Files\GPSoftware
C:\Program Files\GPSoftware\Directory Opus

It doesn't match these things (because they have fewer than two \ in them):

D:
D:\Moo
C:\Program Files


#9

Sorry, I misunderstood you. I will try your suggestion.

p.s. Sorry that I can not edit delete the post above


#10

Works great. Thanks!