corrected directory listing response handling