cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Fri, 23 Oct 2009 15:51:24 +0800

Hi, everybody:

Although "ls" is not among the quote commands, the content of a folder can be displayed by a simple sftp connection:
=================================================
qxu@durian(pts/1):~/opensrc/curl-7.19.6/src[113]$ ./curl -u qxu:fair123 sftp://13.198.98.190/~/scan/
drwxrwxr-x 21 qxu XOG_cc 3072 Oct 20 14:09 .
drwxrwxr-x 20 qxu XOG_cc 3072 Oct 23 15:41 ..
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:03 DOC000.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:04 DOC001.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:04 DOC002.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:05 DOC003.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:06 DOC004.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:07 DOC005.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:07 DOC006.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:07 DOC007.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:08 DOC008.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:08 DOC009.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 09:09 DOC010.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:35 DOC011.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:36 DOC012.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:38 DOC013.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:38 DOC014.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:39 DOC015.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:39 DOC016.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:39 DOC017.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:40 DOC018.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:41 DOC019.XSM
drwxr-xr-x 2 qxu XOG_cc 1024 Oct 16 10:41 DOC020.XSM
=================================================
My question is, what function and which parameter of it can be used to get this output when libcurl is used? In my application, the content of the remote path must be determined before real transfer is performed.

Looking forward to help,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-23