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.

[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: ignore a partial path and all its subfolders

[folders.ignore]
Pictures/SummerTrip

Auto-globbing generates the following two patterns:

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

Auto-globbing generates the following two patterns:

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**

Auto-globbing generates the following pattern:

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**

The required "glob:" prefix is inserted:

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

The required "glob:" prefix is inserted:

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

Example: select all user home folders

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

[hierarchy.auto-write]
~

Becomes the following on macOS for user "lloyd":

glob:**/Users/lloyd

Next article: DiskTester