Exclude all folders that end with a certain string

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
quesonoche
Posts: 2
Joined: Thu May 26, 2022 1:48 pm

Exclude all folders that end with a certain string

Post by quesonoche »

I have a filter set so that I can view everything added to my server and not my c drive. However, the server is starting to get populated with html folders that people are saving form webpages. All of them have folder names that end with _files. How can I filter out only these folders aside from filtering:

!"P:\x\x\x\ (some string) - google.com_files" | !"P:\x\x\x\ (some string) - facebook.com_files" | !"P:\x\x\x\ (some string) - coolgames.com_files" and so on for each one I find?

None of the folders will have the same name but will always end with "_files" in the name
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude all folders that end with a certain string

Post by NotNull »

(untetsted)

Does this work?

Code: Select all

!"_files\"    !endwith:_files
!"_files\" removes the content of folders that end with _files from the list
!endwith:_files removes these folders (or filenamess that end with _files) itself from the list.
quesonoche
Posts: 2
Joined: Thu May 26, 2022 1:48 pm

Re: Exclude all folders that end with a certain string

Post by quesonoche »

!"_files\" worked perfectly! Thank you! I wasn't aware that that was how folder syntax worked. I thought I needed to include the entire name starting at the drive. I initially just used !endwith:_files thinking that would take out the files and didn't notice the folders filtering out. In this case there's so many files on this server that the folders are way at the bottom, and I don't care much about filtering them out.
Post Reply