ArkThis / cinbox

CInbox: A Common Inbox engine for archiving data
GNU General Public License v3.0
1 stars 0 forks source link

Files (in)valid Task: Case (in)sensitive matching? #33

Open pjotrek-b opened 5 days ago

pjotrek-b commented 5 days ago

Is there a way to declare if the matching patterns for files valid/invalid are case-sensitive or not?

pjotrek-b commented 3 days ago

Internally, CInbox uses PHP's glob function to do the matching.

The question to have it match case-insensitive seems to have multiple answers/options (but none built-in). See the following thread for more details: https://stackoverflow.com/questions/2520612/can-phps-glob-be-made-to-find-files-in-a-case-insensitive-manner

At the moment, CInbox can do case-insensitive matching using the [Aa] notation. For example, the following would match all entries (files and folders) starting with "DEL" (case-insensitive):

FILES_INVALID[] = [Dd][Ee][Ll]*