Hi,

I am wondering if there is a way of catching exceptions that are
thrown within rubyzip.rb.

For example:

in rubyzip line 583,

private
    def set_time(binaryDosDate, binaryDosTime)
      @time = Time.parse_binary_dos_format(binaryDosDate,
binaryDosTime)
    rescue ArgumentError
      puts "Invalid date/time in zip entry"
    end

I need to be able to 'catch' the exception thrown here, as my app
needs to reject zip files that have invalid date/timestamps

is there a way of doing this before/during opening the zip file?

Thank you in advance

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to