    # File lib/chef/provider/file.rb, line 99
          def compare_group
            return false if @new_resource.group.nil?

            @set_group_id = case @new_resource.group
            when /^\d+$/, Integer
              @new_resource.group.to_i
            else
              Etc.getgrnam(@new_resource.group).gid
            end

            @set_group_id == @current_resource.group
          end