Ensure correct type of response is send to the cache adapter when creating a directory