handle directory list responses