Page 1 of 1

Searching for Folders Only

Posted: 11 Apr 2013 19:53
by Enternal
I think I'm doing something wrong but I can't figure it out yet. I have a folder named PortableApps and I wanted to search only for folders named "Data". No files or any other folders. Currently I have the search setting as:
Search 1.png
Search 2.png
But for some reason, that CamStudio file keeps showing up. Am I doing something wrong? Thanks.

Re: Searching for Folders Only

Posted: 11 Apr 2013 20:07
by highend
You have to set the directory checkmark under tab: attributes as well.

Re: Searching for Folders Only

Posted: 11 Apr 2013 20:16
by TheQwerty
Well...

1) You can achieve this with a simple quick name search of: ?Data /rd
or if you want those exactly matching and not just containing the word: ?"Data" /rd

2) Or as highend speedily suggested.... Instead of using the Excluded tab you can go to the Attributes tab and ensure Directory is checked.

3) If you really want to use exclusions I believe you need to use file:*.* (select your current entry and then check File, under the Add Current/Browse/Manager buttons). There is, however, one big caveat with this one. Though the checkbox is labeled file, it actually toggles between testing against the item's location vs the item's name. Thus while the above pattern of file:*.* will exclude all files which have an extension (or at least a dot in the name), it will also exclude any folders which match (contain a dot).

Re: Searching for Folders Only

Posted: 12 Apr 2013 03:05
by Enternal
Ah! Thank you!

The quick name search is also a great idea! I don't know why but that never even came to mind.