use prune to delete rendered files

This handles deleting empty directories too.
master
Joey Hess 2008-07-14 22:45:12 -04:00
parent 3256522bda
commit 76bda69a92
1 changed files with 2 additions and 1 deletions

View File

@ -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 ("$!");
}
}