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
Exclude all folders that end with a certain string
-
- Posts: 2
- Joined: Thu May 26, 2022 1:48 pm
Re: Exclude all folders that end with a certain string
(untetsted)
Does this work?
!"_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.
Does this work?
Code: Select all
!"_files\" !endwith:_files
!endwith:_files removes these folders (or filenamess that end with _files) itself from the list.
-
- Posts: 2
- Joined: Thu May 26, 2022 1:48 pm
Re: Exclude all folders that end with a certain string
!"_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.