Clone inner path dest fix

This commit is contained in:
shortcutme 2016-12-14 00:42:52 +01:00
parent 62501d00b1
commit 34ab2bad49

View file

@ -567,9 +567,10 @@ class Site(object):
# Copy the file normally to keep the -default postfixed dir and file to allow cloning later
if root_inner_path:
file_inner_path_dest = re.sub("^%s" % re.escape(root_inner_path), "", file_inner_path)
file_inner_path_dest = re.sub("^%s/" % re.escape(root_inner_path), "", file_inner_path)
file_path_dest = new_site.storage.getPath(file_inner_path_dest)
else:
file_inner_path_dest = file_inner_path
file_path_dest = new_site.storage.getPath(file_inner_path)
self.log.debug("[COPY] %s to %s..." % (file_inner_path, file_path_dest))