"Maciej W. Rozycki" <[EMAIL PROTECTED]> writes: > On Sat, 8 Oct 2005, Hrvoje Niksic wrote: > >> As you said, parsing UNIX directory listings is a nightmare. If >> someone has a suggestion for better heuristics, please go ahead and >> suggest. > > Hmm, use MDTM/SIZE to attempt to get at file dates and sizes and > NLST to get lone file names? Easier said, than done, I know... :-(
And that's assuming that all servers support MDTM/SIZE, which I'm not sure is a given. Not at all sure. > But used by other software and with reasonable FTP servers it works > rather well. But if we assumed "reasonable FTP servers" then the current parser would work as well.