You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Matthieu Recouly <ma...@laposte.net> on 2003/08/21 10:41:42 UTC

UnixFTPEntryParser - small fix (?)

** 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)