1
0
Fork 0
forked from github/pelican

Fixes #2305: Follow symlinks while copying in static generator

This commit is contained in:
Deniz Turgut 2018-03-16 00:36:19 +03:00
commit beef062bb8

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