def ignore_patterns(*patterns):
def _ignore_patterns(path, names):<EOL><INDENT>ignored_names = []<EOL>for pattern in patterns:<EOL><INDENT>ignored_names.extend(fnmatch.filter(names, pattern))<EOL><DEDENT>return set(ignored_names)<EOL><DEDENT>return _ignore_patterns<EOL>
Function that can be used as copytree() ignore parameter.

    Patterns is a sequence of glob-style patterns
    that are used to exclude files