# File lib/chef/provider/cookbook_file.rb, line 35
      def action_create
         if file_cache_location && content_stale?
           Chef::Log.debug("content of file #{@new_resource.path} requires update")
           backup_new_resource
           Tempfile.open(::File.basename(@new_resource.name)) do |staging_file|
             Chef::Log.debug("staging #{file_cache_location} to #{staging_file.path}")
             staging_file.close
             stage_file_to_tmpdir(staging_file.path)
             FileUtils.mv(staging_file.path, @new_resource.path)
           end
           @new_resource.updated_by_last_action(true)
         else
           set_all_access_controls(@new_resource.path)
         end
         @new_resource.updated_by_last_action?
       end