From beef062bb81c80fa817bbab6c1f07203cec87bbd Mon Sep 17 00:00:00 2001 From: Deniz Turgut Date: Fri, 16 Mar 2018 00:36:19 +0300 Subject: [PATCH] Fixes #2305: Follow symlinks while copying in static generator --- pelican/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/utils.py b/pelican/utils.py index ef9da23b..c1c41253 100644 --- a/pelican/utils.py +++ b/pelican/utils.py @@ -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_))