[issue1738] filecmp.dircmp does exact match only

Michael Amrhein report at bugs.python.org
Fri Apr 11 13:21:44 CEST 2008


Michael Amrhein <mamrhein at users.sourceforge.net> added the comment:

I've implemented an enhanced version of this feature by adding a keyword
'match' to the constructor of class 'dircmp'. It defaults to function
'fnmatch' imported from module 'fnmatch'.
This allows to exclude directories and/or files by using patterns like
'*.tmp'.
By giving a different function it's also possible to use more elaborated
patterns, for example, based on regular expressions.
Attached patch includes updates of documentation and test cases.

----------
nosy: +mamrhein
versions: +Python 2.6
Added file: http://bugs.python.org/file10005/wildcard.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1738>
__________________________________


More information about the Python-bugs-list mailing list