ID EN
Shutil

ignore_patterns

Python 3.11

This factory function creates a function that can be used as a callable for copytree()'s ignore argument, ignoring files and directories that match one of the glob-style patterns provided. See the example below.

Syntax

PYTHON
shutil.ignore_patterns(*patterns)

See Also

copytree()