Handle files in directories