hasMagic static method
Whether pattern needs expanding at all.
A path with no magic is left completely alone, so a directory that happens to be named oddly still behaves the way it always did.
Implementation
static bool hasMagic(String pattern) => _magic.hasMatch(pattern);