mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Hack out overwrite param
This commit is contained in:
parent
0f4058a317
commit
b144c3cfbd
2 changed files with 2 additions and 4 deletions
|
|
@ -544,7 +544,7 @@ class StaticGenerator(Generator):
|
|||
"""Copy all the paths from source to destination"""
|
||||
for path in paths:
|
||||
copy(path, source, os.path.join(output_path, destination),
|
||||
final_path, overwrite=True)
|
||||
final_path)
|
||||
|
||||
def generate_context(self):
|
||||
self.staticfiles = []
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ def slugify(value, substitutions=()):
|
|||
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.
|
||||
|
||||
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 destination: the destination dir
|
||||
:param destination_path: the destination path (optional)
|
||||
:param overwrite: whether to overwrite the destination if already exists
|
||||
or not
|
||||
"""
|
||||
if not destination_path:
|
||||
destination_path = path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue