summaryrefslogtreecommitdiff
path: root/render/directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/directory.c')
-rw-r--r--render/directory.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/render/directory.c b/render/directory.c
index 969b0c5b9..193941ecf 100644
--- a/render/directory.c
+++ b/render/directory.c
@@ -150,3 +150,14 @@ void directory_destroy(struct content *c)
return;
}
+
+bool directory_clone(const struct content *old, struct content *new_content)
+{
+ /* This will only get called if the content is cloned before
+ * content_convert() is called. Simply replay creation. */
+ if (directory_create(new_content, NULL) == false)
+ return false;
+
+ return true;
+}
+