Howto Ignore "KGB" folders

#1

Hi
In my file system I have folders Named “KGB” that serve as local garbage bin.
I tried to avoid Listary listing files into those “KGB” with the Folder filter KGB but with no success.
any Idea how-to do this?

Calude

#2

Instead of creating a filter, use the 2nd button “Exclude a drive or folder” in Listary Options - Index. Also, “Clean History” in Listary Options - History.

#3

its in Beta 6.5.16
I have already tried “remove a folder or drive from search result” no success
as I have almost 30 KGB folders in my HD I cannot enter all the full paths
hence the try with KGB

#4

Can you upload one screenshot of your priority settings and one of the search results?

1 Like
#6

here you can see that Listary shows several files in “KGB” locations

#7

Hi There. I hope I’m not “hijacking” this thread… Calude, I see that you are using wildcards such as *KGB* in your patterns. Does that work? When you create a new rule, the dialog says “File name (regex)”

Channing, did you mean we should use regular expressions… Or wildcards?

#8

I tried using wildcards but it doesnt work for me hence this thread

#9

If it’s PERL type regexes, you might try
\N*KGB\N*

Oddly though, I notice that Canning’s default items don’t use regex rules… I’m not an expert, but I think that backslashes have to be escaped with an additional backslash… Like
C:\\Users\\SWKunkel\\Google Drive\\\N*
should match C:\Users\SWKunkel\Google Drive\Folder

#10

thanks but this doesnt work either

#11

No doubt you already tried “Rebuild Index” after changing you settings…

#12

I see. The reason is that file name filters only apply to folders themselves, not contents within them. I’ll find a solution for this.

1 Like
#13

I’m curious if my above comment with C:\\Users\\SWKunkel\\Google Drive\\\N* is correct… Should we use double back-slashes?

Will Listary also accept an asterisk * as a wildcard, or does it need to be strict regex rules?

#14

Folder paths are not treated as regex. Escaping is not needed. Wildcards are not accepted.

#15

Interesting. Thanks for the reply DiamondbacK.
So I guess if you exclude (for example) C:\Users\SWKunkel\MyFolder then all subfolders and files in that folder would be excluded. That doesn’t seem very flexible. Maybe I’ll experiment so I can see. For now I’ll drop it, so I don’t keep hijacking this thread… :slight_smile:

#16

why “KGB” ?
nothing to do do with russian spies, comes from french “cagibi” cupboard