View Single Post
Old 10-29-2003, 08:14 PM  
dasOp
Member
 
Join Date: Jan 2003
Posts: 91
Default

Hate to ruin your fun, but the LIST-parsing code of a graphical ftp client is usually the hairiest part of it.

Reason? The ftp-protocol rfc's do not specify the format. At all.
So servers are free to do exactly what they want. Nonetheless, these things tend to implicitly standardize themselves anyways, and as things are now, they all resemble the output from unix 'ls'.
The key to parsing em is not to rely on specific character positions but to tokenize the fields as they usually are the same.
dasOp is offline   Reply With Quote