How to search for directories only in Windows Explorer?

0

For example searching for file does right thing: file:.git However searching for directory returns nothing: directory:.git

amuliar

Posted 2017-12-13T14:04:49.847

Reputation: 133

Question was closed 2017-12-13T14:13:31.097

Answers

1

Use folder: instead.

For example folder: .git will search for all directories that have .git in them.

It will still find files inside them.

If you really want folders only, use kind:folders ".git"

Notice how folder: gets blue, indicating that it's a filter that will work.

This is tested to work in Windows 10. Given that you did not mention what OS you are using, I will assume you use the latest at this time of writing, which is Windows 10, but it probably works in earlier versions too.

LPChip

Posted 2017-12-13T14:04:49.847

Reputation: 42 190

folder: .git doesn't work despite i see .git directories (folder: ".git" either) – amuliar – 2017-12-13T15:53:25.070

Edited the answer. Thanks for the feedback. Feel free to mark the answer as answered, so others know you no longer need help. – LPChip – 2017-12-13T16:03:42.590