I'm trying to use Glob. However, there is an inconsistency between match() and glob(). Example:
If I have a file /tmp/testdir/testdir/bob,
Glob::glob("/tmp/testdir/test*") returns only /tmp/testdir/testdir/.
g.match("/tmp/testdir/testdir/bob") returns true.
I'd like the "*" in Glob::glob("/tmp/testdir/test*") to match path separaters, like g.match() does. Is this a bug?
Glancing at the code, it looks to me like
Glob.cpp:89 pattern.makeDirectory(); // to simplify pattern handling later on
appends a "/", which might cause "*" to only match in that directory.
Any help is appreciated,