Re: AIX No such file *.msg

2005-10-10 Thread Maciej W. Rozycki
On Mon, 10 Oct 2005, Hrvoje Niksic wrote:

> And that's assuming that all servers support MDTM/SIZE, which I'm not
> sure is a given.  Not at all sure.

 That's assuming some of them do, as it's known not all do.  But these
commands have been invented exactly for machine-processing, so they should
be used to avoid the pain and also to encourage people writing servers to
include them.  AFAIK even original Netscape Navigator (i.e. probably some
ten years ago) used them, so it's not that they are of interest for some
corner cases only.

> But if we assumed "reasonable FTP servers" then the current parser
> would work as well.

 Well, a server may give strange formatting of LIST -- and don't forget
the output is supposed to be human-readable, so it may be in a non-C 
locale too -- but still support MDTM/SIZE and NLST as expected.

  Maciej


Re: AIX No such file *.msg

2005-10-10 Thread Hrvoje Niksic
"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.


Re: AIX No such file *.msg

2005-10-10 Thread Maciej W. Rozycki
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... :-(  But used by
other software and with reasonable FTP servers it works rather well.

  Maciej