Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.7k views
in Java FTP by
Happens in FTPFileParser.split(String) when calling FTPClient.dirDetails(String)

The problem seems to be that the constant FTPFileParser.MAX_FIELDS is too small and if a file contans too many spaces then its name is split in to many parts.
I think it will be better to replace this fixed length array called 'fields' (in FTPFileParser.split()) with some dynamic mechanism for storing all those Strings.

2 Answers

0 votes
by
I'm sorry for posting this before readng the other tpics
Please for such problems refer to
http://www.enterprisedt.com/forums/viewtopic.php?t=615
0 votes
by (400 points)
I just saw this, I guess I'm a little slow. Anyway, I just posted a fix for this at:
http://www.enterprisedt.com/forums/viewtopic.php?t=742

It was quick and easy for us so I just compiled the source. I don't know if it might make sense for you.

Categories

...