1
0
Fork 0
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:
Justin Mayer 2018-03-18 00:14:10 +01:00 committed by GitHub
commit a51a487533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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_))