curl-library
Re: Identification of ftp directory tree
From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Mon, 17 Nov 2008 16:35:15 -0600
Date: Mon, 17 Nov 2008 16:35:15 -0600
Timothy Roughton wrote:
> Daniel Stenberg wrote:
>> Then, LIST is highly system-specific in the sense that its output format
>> is not standardized anywhere so two different servers can output the
>> directory list in any way it thinks look good.
Although it's not perfect, this might help:
http://cr.yp.to/ftpparse.html
It's been a while since I played with this, but IIRC the
ftpparse->flagtrycwd is set to zero for files and 1 for
directories.
- Jeff
Received on 2008-11-17