cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl sftp question...

From: James Housley <jim_at_thehousleys.net>
Date: Thu, 28 Jun 2007 11:39:11 -0400

On Jun 28, 2007, at 11:13 AM, Joe Ebmeier wrote:

> Hmm... seems to have the same result:
>
> [root_at_vmspot1 joe]# curl -l -u interact:password
> "sftp://javadev2/interact/lib/lib*"
> curl: (78) Could not open remote file for reading: No such file or
> directory
> [root_at_vmspot1 joe]#

libssh2 doesn't have any regex support. Support for this could be
added to either libssh2 or into libcurl to process the returned
results. The sftp protocol doesn't support wild cards for reading
directories. Looking at the OpenSSH sftp source code, the regex
capability is added in the client.

Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
                      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
A: Yes.
| Q: Are you sure?
| | A: Because it reverses the logical flow of conversation.
| | | Q: Why is top posting frowned upon?
Received on 2007-06-28