The line of output is acutally in the rubyzip.rb file itself, line 584
-
def set_time(binaryDosDate, binaryDosTime)
@time = Time.parse_binary_dos_format(binaryDosDate,
binaryDosTime)
rescue ArgumentError
puts "Invalid date/time in zip entry"
end
end
The Timestamp in the Zip file, is causing the rescue statement to be
output after the file has been opened, but I would like to be able to
'catch' this if at all possible,
Thanks
Pete
On 11 Oct, 22:37, Hassan Schroeder <[email protected]> wrote:
> On Mon, Oct 11, 2010 at 2:04 AM,Pete<[email protected]> wrote:
> > but I am still having the same problems - I am trying to use the
> > methods (mtime etc) to access the timestamp information that is
> > initially being returned as the rescue statement 'Invalid date/time in
> > zip entry'
>
> What exactly is it that's returning that statement?
>
> > All I need to do is be able to access this 'invalid date/time' entry,
> > but none of the 'time' methods seem to return this.
>
> I'm sure they don't. If, as I suspect, you're getting that message when
> you use 'unzip' from the command line, that message is coming from
> that specific program.
>
> I would imagine you'll have to write your own method to examine the
> timestamps of the files in the zip and decide whether they meet your
> criteria for "invalid".
>
> FWIW,
> --
> Hassan Schroeder ------------------------ [email protected]
> twitter: @hassan
--
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.