filepathx icon indicating copy to clipboard operation
filepathx copied to clipboard

panic: syntax error in pattern

Open jokeapart opened this issue 5 years ago • 3 comments

Used the pattern below: matches, err := filepathx.Glob(casename + "/**/*.png")

It works just fine but I recently encountered the error "panic: syntax error in pattern" while globing a directory. Please what can I do?

jokeapart avatar Nov 03 '20 07:11 jokeapart

Its due to the fact that the code does not escape properly the filepath.Match syntax. Which it should do... On windows however escaping is disabled...

gabyx avatar Dec 18 '20 18:12 gabyx

https://github.com/yargevad/filepathx/pull/4

gabyx avatar Dec 18 '20 18:12 gabyx

#4

Thank you so much for the update.

jokeapart avatar Dec 22 '20 05:12 jokeapart