check for non-empty files before putting them on to do list