The LIST reply isnt really in the rfc standards.
Why dont you determine the 55 dynamically? It is quite easy to do and apparently you havent tested all that good also. Make very long user and/or groupnames on the ftpserver and you will see that the LIST output changes in some of the cases you tested.
So my advise: use some intelligent parsing.
dr--r--r-- 1 user group 0 Feb 11 15:50 dirname
|