File pruning