curl-library
Re: Re: Help - How to enumerate files and directory on a SFTP
From: Ngo Hoa Lan Phuong <orchidanz_at_gmail.com>
Date: Fri, 12 Dec 2008 11:07:09 +0700
Date: Fri, 12 Dec 2008 11:07:09 +0700
>
> On Thu, Dec 11, 2008 at 10:07:03AM +0700, Ngo Hoa Lan Phuong wrote:
> *> I read curl_easy_setopt.3 -- man page and notice that libcurl supports
> *
> *> following SFTP commands: chgrp, chmod, chown, ln, mkdir, pwd, rename,
> rm, *
> *> rmdir, symlink. And the ls command aren't supportted. Do anybody know
> how to *
> *> enumerate files and directory on a SFTP server? *
> Just pass libcurl a URL to a directory (with a trailing slash) and it will
> give you a listing. You may also want the option CURLOPT_DIRLISTONLY.
Yeah, it works. Thanks a lot!
Received on 2008-12-12