Hack out overwrite param

This commit is contained in:
bmcorser 2013-08-24 14:38:06 +01:00
commit b144c3cfbd
2 changed files with 2 additions and 4 deletions

View file

@ -544,7 +544,7 @@ class StaticGenerator(Generator):
"""Copy all the paths from source to destination""" """Copy all the paths from source to destination"""
for path in paths: for path in paths:
copy(path, source, os.path.join(output_path, destination), copy(path, source, os.path.join(output_path, destination),
final_path, overwrite=True) final_path)
def generate_context(self): def generate_context(self):
self.staticfiles = [] self.staticfiles = []

View file

@ -256,7 +256,7 @@ def slugify(value, substitutions=()):
return value.decode('ascii') return value.decode('ascii')
def copy(path, source, destination, destination_path=None, overwrite=False): def copy(path, source, destination, destination_path=None):
"""Copy path from origin to destination. """Copy path from origin to destination.
The function is able to copy either files or directories. The function is able to copy either files or directories.
@ -265,8 +265,6 @@ def copy(path, source, destination, destination_path=None, overwrite=False):
:param source: the source dir :param source: the source dir
:param destination: the destination dir :param destination: the destination dir
:param destination_path: the destination path (optional) :param destination_path: the destination path (optional)
:param overwrite: whether to overwrite the destination if already exists
or not
""" """
if not destination_path: if not destination_path:
destination_path = path destination_path = path