What behavior would you expect?

Jason Friedman jsf80238 at gmail.com
Fri Feb 20 00:55:44 EST 2015


> If you're going to call listdir, you probably want to use fnmatch directly.
>
> fnmatch seems to be silent on non-existent directories:
python -c 'import fnmatch; fnmatch.fnmatch("/no/such/path", "*")'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150219/8da5dce2/attachment.html>


More information about the Python-list mailing list