Include only folders showing other folders

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 673
Joined: Mon Aug 24, 2020 1:16 pm

Include only folders showing other folders

Post by anmac1789 »

In the excludes tab under options, I write a path in "include only files" I click on "Add filter" and add a path. Afterwards, I see folders from other storage media showing up in the search list including the C drive. How do I get everything to show only FOLDERS AND FILES in "include only files" path and ignore everything else?

Screenshot 2022-11-10 130230.jpg
Screenshot 2022-11-10 130230.jpg (182.38 KiB) Viewed 1890 times
LeoLUG
Posts: 69
Joined: Tue May 26, 2020 2:28 am

Re: Include only folders showing other folders

Post by LeoLUG »

maybe here
Attachments
2022-11-10_131042.jpg
2022-11-10_131042.jpg (230.58 KiB) Viewed 1886 times
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Include only folders showing other folders

Post by raccoon »

The Include only files setting is intended to only take a list of filenames, or wildcard of filenames, or paths of filenames. Regardless of where you enter the information (eg, the "..." button then "Add Filter" button, or typing it out manually), the rules of the setting's hover text must still be followed. These are the rules of the Include only files setting that must be followed.

Everything64_GhAcXT7K2m.png
Everything64_GhAcXT7K2m.png (7.58 KiB) Viewed 1882 times

You did not type a full path and filename, or full path and wild filename. You just typed a naked path, which is an invalid input. It needs a filename, or a wildcard filename, for it to be considered a "file" input. Include only files.

In your first filter, try appending \* to the end, as in ...\download android folder\testing\* for it to become a fully qualified file path.

However, I recommend taking LeoLUG's approach. The above section is not the appropriate place to specify indexed folder paths with subfolders. It's intended to restrict search results to specific types of documents and media, to prevent the user from accessing other files and filetypes. Eg, a video kiosk or document workstation.
anmac1789
Posts: 673
Joined: Mon Aug 24, 2020 1:16 pm

Re: Include only folders showing other folders

Post by anmac1789 »

So there is no single solution for including one folder path while excluding the rest everywhere in all volumes?
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: Include only folders showing other folders

Post by void »

Please try one of the following:

1) Set include only:
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab on the left.
  • Select your C: drive.
  • Change Include only to:
    C:\Users\user\Desktop\s8 folder structure\download android folder\testing
  • Select your I: drive.
  • Change Include only to:
    I:\filemanagerplus.outerfolder.2downloadsfolder\Download
  • Click the Exclude tab.
  • Clear Include only files.
  • Click OK.


2) Use folder indexing instead:
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab on the left.
  • For each NTFS volume:
    • Uncheck Include in database.
  • Click the Folders tab on the left.
  • Click Add folder....
  • Select your include only folder and click OK.
  • Repeat for additional folders.
  • Click OK.
  • Click the Exclude tab.
  • Clear Include only files.
  • Click OK.


3) Set a negative look ahead regex exclude (not ideal):
  • In Everything, from the Tools menu, click Options.
  • Click the Exclude tab.
  • Click Add filter....
  • Set the filter to:
    regex:^(?!c:(\\users(\\user(\\Desktop(\\s8 folder structure(\\download android folder(\\testing(\\.*)?)?)?)?)?)?)?$)
  • Click OK.
  • Click OK.
anmac1789
Posts: 673
Joined: Mon Aug 24, 2020 1:16 pm

Re: Include only folders showing other folders

Post by anmac1789 »

void wrote: Fri Nov 11, 2022 8:38 am Please try one of the following:

1) Set include only:
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab on the left.
  • Select your C: drive.
  • Change Include only to:
    C:\Users\user\Desktop\s8 folder structure\download android folder\testing
  • Select your I: drive.
  • Change Include only to:
    I:\filemanagerplus.outerfolder.2downloadsfolder\Download
  • Click the Exclude tab.
  • Clear Include only files.
  • Click OK.


2) Use folder indexing instead:
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab on the left.
  • For each NTFS volume:
    • Uncheck Include in database.
  • Click the Folders tab on the left.
  • Click Add folder....
  • Select your include only folder and click OK.
  • Repeat for additional folders.
  • Click OK.
  • Click the Exclude tab.
  • Clear Include only files.
  • Click OK.


3) Set a negative look ahead regex exclude (not ideal):
  • In Everything, from the Tools menu, click Options.
  • Click the Exclude tab.
  • Click Add filter....
  • Set the filter to:
    regex:^(?!c:(\\users(\\user(\\Desktop(\\s8 folder structure(\\download android folder(\\testing(\\.*)?)?)?)?)?)?)?$)
  • Click OK.
  • Click OK.
Thanks for the clarification. Everyday I learn something new lol
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Include only folders showing other folders

Post by raccoon »

Note that negative inclusion (the Exclusion tab) is going to be the slower option, because you are indexing all your drives and then deleting all the entries from that index except for a few files. It's like borrowing all the books from the library and then picking out the one you want to read after you get home, burning all the rest in your front yard. Plus heavy regex consumes CPU.
Post Reply