Add directory resource.