This message was deleted.
# troubleshooting
s
This message was deleted.
g
I'm pretty surprised that FilenameUtils.wildcardMathc allows
*
to match path separators. That's not normal for a glob. Like, in the shell,
*.txt
does not match
foo/bar.txt
I don't think it would have anything to do with S3, since the glob library operates purely on strings
I'm not aware of a library that does it, but if I was doing it from scratch I would transform the glob to regex and use
java.util.regex.Pattern
to do the matching
like,
*
from a glob would become
[^/]*
in regex
d
yeah… I thought glob would provide a superior UX. But now I am regretting why not regex.
g
glob is easier to use for sure
i was thinking user would provide a glob and then in the code we would transform it to a regex