forgot to append the file name to the cookbook_file resource and overwrote the directory...