From 76bda69a92075cbe73ba64232c69e32d7346b277 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jul 2008 22:45:12 -0400 Subject: [PATCH] use prune to delete rendered files This handles deleting empty directories too. --- IkiWiki/Plugin/aggregate.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index f648a3f99..301fe40f6 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -157,8 +157,9 @@ sub migrate_to_internal { #{{{ debug("$oldname not found"); } if (-e $oldoutput) { + use IkiWiki::Render; debug("removing output file $oldoutput"); - unlink($oldoutput) || error ("$!"); + IkiWIki::prune($oldoutput) || error ("$!"); } } -- 2.45.2