aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-14 22:45:12 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-14 22:45:12 -0400
commit76bda69a92075cbe73ba64232c69e32d7346b277 (patch)
tree15973bb273617cabd4a935d2002e90ab317c335e /IkiWiki
parent3256522bdaf2ca7c678041a19a4b97bd7dc57c90 (diff)
downloadikiwiki-76bda69a92075cbe73ba64232c69e32d7346b277.tar
ikiwiki-76bda69a92075cbe73ba64232c69e32d7346b277.tar.gz
use prune to delete rendered files
This handles deleting empty directories too.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/aggregate.pm3
1 files changed, 2 insertions, 1 deletions
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 ("$!");
}
}