You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Darren Hartford <dh...@ghsinc.com> on 2008/09/23 23:03:46 UTC
[commons-net] UnixFTPEntryParser - patch/change
Would like a change to the UnixFTPEntryParser to better handle the scenario below
Usecase:
drwxr-xr-x345 55555 5555555555 55555 Sep 22 23:22 MYBUSYDIR
The hardLinks is directly beside the permission block, there is no space (-x560).
old UnixFTPEntryParser (NET_2_0 tag):
=======
private static final String REGEX =
"([bcdelfmpSs-])"
+"(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+"
+ "(\\d+)\\s+"
...
========
Recommended Change
=======
//change last \\s space from group 2/14 from \\s+ to \\s*, from 'one to many' to 'zero to many'
private static final String REGEX =
"([bcdelfmpSs-])"
+"(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s*"
+ "(\\d+)\\s+"
...
=======
Thanky, looking forward to a new commons net release soon!
-D
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org