Handle empty directories