diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-14 22:45:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-14 22:45:12 -0400 |
commit | 76bda69a92075cbe73ba64232c69e32d7346b277 (patch) | |
tree | 15973bb273617cabd4a935d2002e90ab317c335e | |
parent | 3256522bdaf2ca7c678041a19a4b97bd7dc57c90 (diff) |
use prune to delete rendered files
This handles deleting empty directories too.
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 3 |
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 ("$!"); } } |