forked from github/pelican
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_)
|
||||
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_,
|
||||
os.path.relpath(src_dir, source_))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue