snapraid-aio-script icon indicating copy to clipboard operation
snapraid-aio-script copied to clipboard

Switch to bash glob matching which should be more user friendly

Open Wastus opened this issue 4 months ago • 3 comments

Description

I brought in the suggestion for an ignore pattern in #70 and made a proof of concept which was integrated by @tehniemer.

As seen in #144 the pattern is hard to get right and does not follow the typical file globbing pattern rules.

I suggest a switch to bash file globbing patterns which are what linux users are probably used to. This does not need any new dependencies, but breaks the regex patterns in use (only released under beta so far). I also added a note for the documentation, that this feature should not be used to exclude often changing files (which will break parity calculations).

Fixes #144

I've tested the functionality in a separate script with some old log files from earlier runs and with a few runs on my own instance.

Type of change

  • [X] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • [X] I have performed a self-review of my own code
  • [X] I have commented my code (only required for new or big features)
  • [X] My changes generate no new warnings

Wastus avatar Aug 31 '25 18:08 Wastus