haltcase/glob

controlling case (in-)sensitivity in glob

timotheecour opened this issue · 3 comments

in python, ignoring case seems a bit awkard, eg: https://stackoverflow.com/questions/8151300/ignore-case-in-glob-on-linux
what would be recommended way to have case insensitive glob with this library?
if too awkward to use, maybe we should have a flag to control that?

I wouldn't think it's that complicated. This could probably work similarly (or even be tied to) to the current isDos flag in the pattern compiler - default to case insensitivity on Windows but sensitivity otherwise. If we add this we can do it by passing the regex i flag to the regex module.

This turned out to be a bit more complicated than I thought but it's in there 😆

7115d8d

awesome! I'll put comment in that PR