curl-library
Re: libcurl question
Date: Tue, 12 Jan 2016 10:32:41 -0600
On Tue, Jan 12, 2016 at 4:01 AM, Amirul Islam <blindcat_at_gmail.com> wrote:
> Silly question, how do I list only directories when getting from an FTP
> site? When I list, everything including directory is sent back.
I think you will need to filter out the non-directories yourself. This
might help:
https://cr.yp.to/ftpparse.html
In particular, check these two fields of the parser's output:
int flagtrycwd; /* 0 if cwd is definitely pointless, 1 otherwise */
int flagtryretr; /* 0 if retr is definitely pointless, 1 otherwise */
- Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-12