Gitlab CI uses this code for globs:
File.fnmatch?(glob, path, File::FNM_PATHNAME | File::FNM_DOTMATCH | File::FNM_EXTGLOB)
If I want to match all files and folders under a directory I think you have to do this:
foo/*
foo/**/*
That sucks. I thought this would work:
foo/**
But it only works without FNM_PATHNAME
. The Ruby docs for this are extremely bad. What exactly is going on here? Is there a single pattern that will match foo/a
and foo/a/b
?