add cookbook_file & directory resource