Page 1 of 1

Absolute path glob in ExclusionList does not work with source list

Posted: Thu Nov 12, 2026 12:29 am
by n64
I'm trying to change from a large exclusion list to specifying the few directories I want backed up. I want to exclude a couple sub directories, but it's not excluding properly.

The documentation makes it sound like this should work and I found this old thread that looks like the same issue and was marked solved, but isn't viewtopic.php?t=556.

This is easily reproducible
wimlib_sources.txt

Code: Select all

Desktop
Documents
Downloads
wimlib_config.ini

Code: Select all

[ExclusionList]
\Downloads\*.mkv
\Downloads\*.mp4
\Downloads\*.webm

"\Documents\My Games"
"/Documents/My Games"

\AppData
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2
Running cmd as normal user so it starts from your profile directory and testing without the source-list works as expected

Code: Select all

wimlib-imagex.exe append .\ V:\test.wim --include-integrity --compress=fast --config=wimlib_config.ini  --no-acls --create
That properly excludes "My Games" directory in the documents folder and excludes all video files in the downloads folder.

But when I use a source-list

Code: Select all

wimlib-imagex.exe append wimlib_sources.txt V:\test.wim --include-integrity --compress=fast --config=wimlib_config.ini  --no-acls --source-list --create
The wim is successful, but it included the "My Games" folder and video files.

I did test global exclude, wimlib_config.ini

Code: Select all

[ExclusionList]
\Downloads\*.mkv
\Downloads\*.mp4
\Downloads\*.webm

"\Documents\My Games"
"/Documents/My Games"

\AppData
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2

*.mkv
"My Games"
And that did work, but I wanted to avoid the global approach.

Is this a bug or is it designed this way on purpose?