From 74edbf065728498c38f1975c97b7d16f40d1903c Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Sat, 23 Mar 2013 14:49:42 +0100 Subject: New document file structure - Document source is to be found under srcdir/src - Templates under srcdir/templates - Assets under srcdir/assets Assets are any files/directories that should be copied to the pubdir but are otherwise unprocessed by panfry. - By default pubdir = srcdir/pub --- panfry/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'panfry/util.py') diff --git a/panfry/util.py b/panfry/util.py index 5909eef..c4bab42 100755 --- a/panfry/util.py +++ b/panfry/util.py @@ -1,12 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- import os +import distutils.dir_util as dir_util import shutil def copy(src, dst, ignore=None): if os.path.isdir(src): - shutil.copytree(src, dst, True, ignore) + dir_util.copy_tree(src, dst) else: shutil.copy(src, dst) -- cgit v1.2.3