    # File lib/chef/provider/file.rb, line 139
          def action_create
            assert_enclosing_directory_exists!
            unless ::File.exists?(@new_resource.path)
              ::File.open(@new_resource.path, "w+") {|f| f.write @new_resource.content }
              @new_resource.updated_by_last_action(true)
              Chef::Log.info("#{@new_resource} created file #{@new_resource.path}")
            else
              set_content unless @new_resource.content.nil?
            end
            set_owner unless @new_resource.owner.nil?
            set_group unless @new_resource.group.nil?
            set_mode unless @new_resource.mode.nil?
          end