pythonpython-2.5shutilcopytree

Python: shutil.copytree , lack of ignore arg in python 2.5


Short of essentially rewriting copytree to accept an ignore callback, what is a simple way to achieve this in versions prior to python 2.6? (I don't want to stray from my debian packages)


Solution

  • You can copy the source for copytree from the 2.6 tree, and put it into your project's source tree.