mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
shutil.copytree doesn't have an ignore argument in Python 2.4
This commit is contained in:
parent
fae5b3c133
commit
860fc27177
@ -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.
|
||||||
@ -97,12 +97,8 @@ class path(str):
|
|||||||
If ``True`` symbolic links in the source tree result in symbolic
|
If ``True`` symbolic links in the source tree result in symbolic
|
||||||
links in the destination tree otherwise the contents of the files
|
links in the destination tree otherwise the contents of the files
|
||||||
pointed to by the symbolic links are copied.
|
pointed to by the symbolic links are copied.
|
||||||
|
|
||||||
:param ignore:
|
|
||||||
A callback which gets called with the path of the directory being
|
|
||||||
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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user