General Topics

IntegrityCheckerJava

DiskTester

MemoryTester

IntegrityChecker

dgl

Tips and How-To

Troubleshooting

Excluding/ignoring folders and files (globbing) —  examples

See the auto-globbing reference page for syntax, etc.

Examples are shown using [folders.ignore] but apply to any preferences section that supports globbing. Most examples make use of auto-globbing.

Example: ignore a folder and all its subfolders

Exclude folder TEMP and all its subfolders, anywhere.

[folders.ignore]
TEMP

Auto-globbing generates one pattern that matches all folders named TEMP and a 2nd patthern that excludes all subfolders of TEMP:

glob:**/TEMP
glob:**/TEMP/**

Example: grouped patterns

Folder names can be grouped and wildcarded eg:

target/{classes,test-classes,surefire-reports,generated*sources,maven-*}

generates:

glob:**/target/{classes,test-classes,surefire-reports,generated*sources,maven-*}
glob:**/target/{classes,test-classes,surefire-reports,generated*sources,maven-*}/**

Example: ignore a partial path and all its subfolders

[folders.ignore]
Pictures/SummerTrip

generates:

glob:**/Pictures/SummerTrip
glob:**/Pictures/SummerTrip/**

Example: exclude home directory Caches folder and all its subfolders (macOS)

This example uses both a partial path and a wildcard.

[folders.ignore]
Users/*/Library/Caches

generates::

glob:**/Users/*/Library/Caches
glob:**/Users/*/Library/Caches/**

Example: exclude all folders in user home directory with "cache" in the name and all subfolders (macOS)

This example uses a partial path and both types of wildcarding.

[folders.ignore]
Users/*/**[Cc]ache**

generates:

glob:**/Users/*/**[Cc]ache**

Example: exclude all folders with "cache" in the name, everywhere

This example does not get auto-globbed because it already is wildcarded fully.

[folders.ignore]
**[Cc]ache**

generates:

glob:**[Cc]ache**

Example: exclude all files with matching names

This example does not get auto-globbed because it already is wildcarded fully.

[filenames.ignore]
*.log
*-wal
*-shm

generates:

glob:*.log
glob:*-wal
glob:*-shm

Example: select user home folder

No auto-globbing for applies to hierarchy.auto-write.

[hierarchy.auto-write]
~

Becomes the following on macOS for user "lloyd":

glob:**/Users/lloyd

Next article: DiskTester