looks like it enough to run split on dir_to_remove only once