    # File lib/chef/provider/file.rb, line 74
          def compare_owner
            return false if @new_resource.owner.nil?

            @set_user_id = case @new_resource.owner
            when /^\d+$/, Integer
              @new_resource.owner.to_i
            else
              # This raises an ArgumentError if you can't find the user
              Etc.getpwnam(@new_resource.owner).uid
            end

            @set_user_id == @current_resource.owner
          end