cURL / Mailing Lists / curl-library / Single Mail


Re: Curl sftp question...

From: James Housley <>
Date: Tue, 26 Jun 2007 15:15:05 -0400

On Jun 26, 2007, at 2:19 PM, Joe Ebmeier wrote:

>> For example the ftp protocol is based on the directory you
>> login to. Where sftp is based on the whole file system. For example
>> to get the listing of the home directory for a user would be
>> curl -l -u interact:password sftp://javadev2.interact.nonreg/~/
> Right, I understand that sftp is based on the whole file system,
> but the -l
> option doesn't appear to work for sftp - as it outputs absolutely
> nothing.

Actually it does. Without "-l" all of the information about the
files are displayed. With "-l" only the name is shown.
Unfortunately it also only list directories, which I just committed
the fix for.


/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
                 The Power to Serve
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-26