mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixes #2305: Follow symlinks while copying in static generator
This commit is contained in:
parent
72756a5c0d
commit
beef062bb8
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ def copy(source, destination, ignores=None):
|
||||||
source_, destination_)
|
source_, destination_)
|
||||||
return
|
return
|
||||||
|
|
||||||
for src_dir, subdirs, others in os.walk(source_):
|
for src_dir, subdirs, others in os.walk(source_, followlinks=True):
|
||||||
dst_dir = os.path.join(destination_,
|
dst_dir = os.path.join(destination_,
|
||||||
os.path.relpath(src_dir, source_))
|
os.path.relpath(src_dir, source_))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue