I am using Python 3.7.6 and the fnmatch.fnmatch function to match a filename with a given pattern. Most of my tests worked, but in specific the following example doesn't return the value as expected. Give is the following exanoke:
> fnmatch.fnmatch('_foo\bar.exe', '^_*')
False
What I try to do, to match any filename whose component starts with _
. Any help is highly appreciated