shutil.copytree has no ignore argument in python 2.4

This commit is contained in:
Daniel Neuhäuser
2010-08-15 20:34:58 +02:00
parent 85b8a451a6
commit ad42f2a93b

View File

@@ -88,7 +88,7 @@ class path(str):
""" """
shutil.rmtree(self, ignore_errors=ignore_errors, onerror=onerror) shutil.rmtree(self, ignore_errors=ignore_errors, onerror=onerror)
def copytree(self, destination, symlinks=False, ignore=None): def copytree(self, destination, symlinks=False):
""" """
Recursively copy a directory to the given `destination`. If the given Recursively copy a directory to the given `destination`. If the given
`destination` does not exist it will be created. `destination` does not exist it will be created.
@@ -102,7 +102,7 @@ class path(str):
A callback which gets called with the path of the directory being A callback which gets called with the path of the directory being
copied and a list of paths as returned by :func:`os.listdir`. copied and a list of paths as returned by :func:`os.listdir`.
""" """
shutil.copytree(self, destination, symlinks=symlinks, ignore=ignore) shutil.copytree(self, destination, symlinks=symlinks)
def movetree(self, destination): def movetree(self, destination):
""" """