commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Recouly" <>
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 **


  Your parser does not allow to retrieve files list on a ftp
server that uses "weird Unix listing style" as described on
  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,  from version 1.0.1-dev, changing the
section of regexp used to parse entries that concerns file's

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

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


Matthieu Recouly

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

View raw message