commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Recouly" <matthieu.reco...@laposte.net>
Subject UnixFTPEntryParser - small fix (?)
Date Thu, 21 Aug 2003 08:41:42 GMT
** this is a copy of the email I've already sent to
scohen@ignitesports.com **

Hi, 

  Your parser does not allow to retrieve files list on a ftp
server that uses "weird Unix listing style" as described on
http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp-p2.html
 
  This is when user has no group, your parser will put the
size value inside group's one, a null user value, and 0 in the
size field.

  To correct that I changed line 85 of
UnixFTPEntryParser.java,  from version 1.0.1-dev, changing the
section of regexp used to parse entries that concerns file's
group:

changed "+ "(\\S+)\\s+" to "+ "(\\S+)?\\s+" (added question mark)

  So this way if no group is present all fieds will have
correct values anyway.


 Regards,


Matthieu Recouly

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




Mime
View raw message