[solved] combining --source-list and --config=

Comments, questions, bug reports, etc.
Post Reply
Tokener
Posts: 20
Joined: Mon Sep 10, 2018 11:18 pm

[solved] combining --source-list and --config=

Post by Tokener »

How do I have to configure the %config-file% section [ExclusionList] to keep wimlib-imagex from capturing certain files from the %source-list%?
I tried to exclude two files by this:
[ExclusionList]

; ---------- wildcard
*setup.bmp
*Readme.txt

; ---------- slash
/setup.bmp
/Readme.txt

; ---------- backslash
\setup.bmp
\Readme.txt

; ---------- path
\path\setup.bmp
\path\Readme.txt
;
but excluded files were still captured. What's wrong?

Best regards T.
Last edited by Tokener on Sat Jul 03, 2021 2:06 pm, edited 1 time in total.
synchronicity
Site Admin
Posts: 472
Joined: Sun Aug 02, 2015 10:31 pm

Re: combining --source-list and --config=

Post by synchronicity »

[ExclusionList] works with --source-list, so I'm not sure what went wrong for you.

One caveat is that if you use an absolute path glob (one beginning with / or \ -- note, it doesn't matter which type of slash you use), it will match separately from each source directory.

So for example if you have:

source_list.txt:

Code: Select all

/a
/b
/c
config.txt:

Code: Select all

[ExclusionList]
/dir/foo.txt
bar.txt
... the files /a/dir/foo.txt, /b/dir/foo.txt, and /c/dir/foo.txt would be excluded, as would any file called bar.txt.
Post Reply