Purge directories to a given number of files
