Fixes warnings when whole folders are selected.