Searching for Folders Only

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Searching for Folders Only

Post 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.
To see the attached files, you need to log into the forum.

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Searching for Folders Only

Post by highend »

You have to set the directory checkmark under tab: attributes as well.
One of my scripts helped you out? Please donate via Paypal

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Searching for Folders Only

Post 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).

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Searching for Folders Only

Post 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.

Post Reply