lib/net/ftp/list/netware.rb in net-ftp-list-2.0.0 vs lib/net/ftp/list/netware.rb in net-ftp-list-2.1.1

- old
+ new

@@ -1,6 +1,7 @@ require 'net/ftp/list/parser' +require 'time' module Net class FTP module List @@ -30,9 +31,12 @@ # Parse a Netware like FTP LIST entries. def initialize(raw) super(raw) match = REGEXP.match(raw.strip) or raise ParserError + + @mtime = Time.parse(match[5]) + @filesize = match[4].to_i if match[1] == 'd' @dir = true else @file = true