Strange Behaviour When Using --exclude During Purge

I think I found a bug when using --exclude with the purge command via the GUI commandline

Let’s say I am using this dataset, already created via Duplicati previously

/sharedfolders/Videos/
/sharedfolders/Music/
/sharedfolders/Others/
/sharedfolders/video1.mkv
/sharedfolders/video2.mkv
/sharedfolders/video3.mkv
/sharedfolders/song1.mp3
/sharedfolders/song2.mp3
/sharedfolders/notes.txt

The plan was to get two copies of this dataset such that:

//Dataset 1
/sharedfolders/Music/
/sharedfolders/Others/
/sharedfolders/song1.mp3
/sharedfolders/song2.mp3
/sharedfolders/notes.txt
//Dataset 2
/sharedfolders/Videos/
/sharedfolders/video1.mkv
/sharedfolders/video2.mkv
/sharedfolders/video3.mkv

So I made two copies of the data and wanted to use the Purge command on each of them

If I were to use the following argument

--include="/sharedfolders/Music/*"
--include="/sharedfolders/Others/*"
--include="/sharedfolders/song1.mp3"
--include="/sharedfolders/song2.mp3"
--include="/sharedfolders/notes.txt"

This works fine for Dataset 1 but the challenge begins with Dataset 2

If I were to use the following argument

--include="/sharedfolders/Videos/*"

The folder “Videos” would be removed but not the individual video files at root directory. It would be ok if the numbers are just a few since I can just purge them individually by identifying them individually per line but I thought I had a better idea.

I tried this argument

--exclude="/sharedfolders/Music/*"
--exclude="/sharedfolders/Others/*"
--include="/sharedfolders/Videos/*"
--include="/sharedfolders/*.mkv"

The following got removed

/sharedfolders/Videos/
/sharedfolders/video1.mkv
/sharedfolders/video2.mkv
/sharedfolders/video3.mkv
/sharedfolders/song1.mp3  //I do not want this removed
/sharedfolders/song2.mp3  //I do not want this removed
/sharedfolders/notes.txt  //I do not want this removed

In other words, it appears that using any --exclude arguments will mean everything from root directory will be included unless specifically excluded by further --exclude arguments.

Or to put it in a more “standard” bug report format:

Expected behaviour: Only specified directories ignored but no other directories excluded/included unless otherwise specified in other arguments
Observed behaviour: Specified directories ignored but all other directories/files included unless specifically excluded in other arguments

May I know if this is intentional by design? Also, how would one be able to solve this problem?