true if the name matches the pattern
bool matches(String name) { try { final runner = _GlobMatchRunner(this, contextPathSplit(posix, name)); return runner.matches(); } catch (_) { return false; } }