Add directory prune script