Exclude and Include only Syntax

Discussion related to "Everything" 1.5.
Post Reply
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Exclude and Include only Syntax

Post by void »

If a file or folder is excluded, it cannot be re-included with an include only.

If Exclude is empty, no files or folders are excluded.
If Include only is empty, all files or folders are included.

Folder exclude filters will also exclude all subfolders and files.
Folder include only filters will also include all subfolders files.



Syntax

A semicolon (;) delimited list of wildcard filters.
; can be escaped while inside double quotes (")
Double quotes can be escaped with double double quotes ("") while inside double quotes (").

Examples:
item1;"item2;with;semicolons";item3
item1;"""item2 in literal quotes""";item3

Technically, the format is CSV with , or ; as the separator character.



Filters

Filters are wildcard filters.
Filters match the whole name. (including extension)
Include a \ or / in your filter to match the whole full path. Otherwise, just the whole name is matched.

Filters can be a full path or name without any wildcards.
The following wildcards are supported:
* = match any character (except \ or /) any number of times.
** = match any character any number of times.
? = match a single character (except \ or /)
regex can be used with the regex: prefix.
ext: lists from search filters are also supported. (eg: ext:jpg;png;gif)

The trailing slash for folders is ignored.



Examples

Exclude all files and folders on E:

e:

-or-
e:\




Exclude all bar folders in a foo folder:

**\foo\bar




Include only mp3 files:

*.mp3




Include only mp3 and jpg files:

*.mp3;*.jpg




Include only search filter ext: list:

ext:jpg;png;gif




Exclude everything in C:\Windows, but allow C:\Windows\System32

regex:^(?!c:(\\windows(\\system32(\\.*)?)?)?$)
Post Reply