add directory resource.