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 »

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: 152
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk »

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 »

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: 152
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk »

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 »

Awesome, it worked. Thank you so much.
Is it possible to make it exclude files with the phrase "text" or "orange"?
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk »

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