use prune to delete rendered files
This handles deleting empty directories too.master
parent
3256522bda
commit
76bda69a92
|
@ -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 ("$!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue