Search for folders that doesn't have a particular file/folder?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
thorodin
Posts: 3
Joined: Mon Mar 25, 2019 9:34 pm

Search for folders that doesn't have a particular file/folder?

Post by thorodin » Mon Mar 25, 2019 9:37 pm

Hi!

I'd like to use regular expressions and search for folders without a particular file/folder.
So let's say I want to look up all of my folders that doesn't have the file or folder called "Text", it'd return a list of folders without "Text".

I am not good at using regular expressions, so if anyone can help me, I'd be very grateful. Thank you

vanisk
Posts: 140
Joined: Sat Oct 27, 2018 11:33 am

Re: Search for folders that doesn't have a particular file/folder?

Post by vanisk » Mon Mar 25, 2019 10:11 pm

Code: Select all

!Text
will list all the files/folders except "Text"

thorodin
Posts: 3
Joined: Mon Mar 25, 2019 9:34 pm

Re: Search for folders that doesn't have a particular file/folder?

Post by thorodin » Mon Mar 25, 2019 11:52 pm

Sorry for making you misunderstand me

I don't want to exclude files and folders with "text" in the filename.
I want to exclude folders that have files and folders with "text" in the filename.

vanisk
Posts: 140
Joined: Sat Oct 27, 2018 11:33 am

Re: Search for folders that doesn't have a particular file/folder?

Post by vanisk » Mon Mar 25, 2019 11:59 pm

thorodin wrote:
Mon Mar 25, 2019 11:52 pm
Sorry for making you misunderstand me

I don't want to exclude files and folders with "text" in the filename.
I want to exclude folders that have files and folders with "text" in the filename.
Sorry, my mistake.

This (might) work

Code: Select all

!child:Text

thorodin
Posts: 3
Joined: Mon Mar 25, 2019 9:34 pm

Re: Search for folders that doesn't have a particular file/folder?

Post by thorodin » Tue Mar 26, 2019 12:24 am

Awesome, it worked. Thank you so much.
Is it possible to make it exclude files with the phrase "text" or "orange"?

vanisk
Posts: 140
Joined: Sat Oct 27, 2018 11:33 am

Re: Search for folders that doesn't have a particular file/folder?

Post by vanisk » Tue Mar 26, 2019 12:37 am

thorodin wrote:
Tue Mar 26, 2019 12:24 am
Awesome, it worked. Thank you so much.
Is it possible to make it exclude files with the phrase "text" or "orange"?

Code: Select all

!child:text|!child:orange

Code: Select all

!child:text|orange

Post Reply