in reply to Re: Parsing FTP ls command results
in thread Parsing FTP ls command results

dwm042:

Yes, but some FTP servers will give you some even uglier output, like:

125 List started OK. Volume Unit Date Ext Used Recfm Lrecl BlkSz Dsorg Dsname APCSPL 3380D 07/16/97 1 1 FB 80 8800 PS ETC.RPC APCSPL 3380D 08/03/97 1 1 FB 80 3200 PS ETC.SERVICES APCSPL 3380D 08/03/97 1 1 FB 80 3120 PS FTP.DATA APCSPL 3380D 08/02/97 1 1 F 158 158 PS HOSTS.ADDRINFO APCSPL 3380D 08/03/97 1 1 FB 80 3120 PS HOSTS.LOCAL APCSPL 3380D 07/30/97 1 1 F 56 56 PS HOSTS.SITEINFO 250 List completed successfully.

So if you're trying to be tolerant of multiple FTP servers, be aware that you may have to have multiple parsers. (Note: The above was snipped from the IBM help pages.)

...roboticus

When your only tool is a hammer, all problems look like your thumb.