forked from github/pelican
Merge pull request #2306 from avaris/static-follow-symlink
Fixes #2305: Follow symlinks while copying in static generator
This commit is contained in:
commit
a51a487533
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