Filter to include all files in root and all files in specific folders only

Hi, how can I create a filter that will include all files in the root folder, and all files in specific folders only, ignoring any folder not explicitly called out.

E.g.

+?*
+foo/*
+bar/*
-*

But I am not sure if the ?* pattern will work on files in the root folder (filter doc example uses ?* pattern in sub folder)?

I had some more time to actually test this, and it does not appear to be working.

Filters:

/cache/localhost/2/.duplicacy # cat filters
+Lightroom/
+Pictures/
+Videos/
+X/
+?*
-*
/cache/localhost/2/.duplicacy # 

Log:

Running backup command from /cache/localhost/2 to back up /backuproot/media
Options: [-log backup -storage B2-Media -enum-only -stats]
2019-09-14 00:50:59.377 INFO REPOSITORY_SET Repository set to /backuproot/media
2019-09-14 00:50:59.377 INFO STORAGE_SET Storage set to b2://ptr727-Duplicacy-Server-1-Media
2019-09-14 00:51:00.453 INFO BACKUP_START No previous backup found
2019-09-14 00:51:00.453 INFO BACKUP_INDEXING Indexing /backuproot/media
2019-09-14 00:51:00.453 INFO SNAPSHOT_FILTER Parsing filter file /cache/localhost/2/.duplicacy/filters
2019-09-14 00:51:00.454 INFO SNAPSHOT_FILTER Loaded 6 include/exclude pattern(s)

No files are included?

+Lightroom/*
+Pictures/*
+Videos/*
-*/
+*

-*/ excludes any first-level directories other than Lightroom, Pictures, …, while +* includes all first-level files.

Thank you.

I am using the web version in docker, and I added -enum-only as an option to a backup job to see the files, but the log does not show any enumerated file info.

The docs talks about a -d option, but -d is not documented on backup options page, forum says it is -debug, and should be specified when using -enum-only else -enum-only produces no output (why not?).
But, when I add -d or -debug to the job options, I get an “invalid options” error when I start the job.

Should I add anything more in options to see a list of files when using enum-only?
How do I add the -d / -debug option without getting the “invalid options” error?

Log:

Running backup command from /cache/localhost/2 to back up /backuproot/media
Options: [-log backup -storage B2-Media -enum-only -stats]
2019-09-14 19:52:45.711 INFO REPOSITORY_SET Repository set to /backuproot/media
2019-09-14 19:52:45.711 INFO STORAGE_SET Storage set to b2://ptr727-Duplicacy-Server-1-Media
2019-09-14 19:52:46.846 INFO BACKUP_START No previous backup found
2019-09-14 19:52:46.846 INFO BACKUP_INDEXING Indexing /backuproot/media
2019-09-14 19:52:46.846 INFO SNAPSHOT_FILTER Parsing filter file /cache/localhost/2/.duplicacy/filters
2019-09-14 19:52:46.847 INFO SNAPSHOT_FILTER Loaded 6 include/exclude pattern(s)

Looks like -debug is a global option, and it needs to be set before other options.
so with -enum-only now wroking without -debug, and I can’t add -debug as a job option, what do I do to get -enum-only working?