cURL / Mailing Lists / curl-library / Single Mail


Re: RE : Remote file information using sftp

From: Daniel Stenberg <>
Date: Thu, 6 Jan 2011 00:38:19 +0100 (CET)

On Wed, 5 Jan 2011, Mele Giovanni wrote:

>> I looked at the code right now and I can't see that we ever introduced
>> support for CURLOPT_FILETIME with SFTP. A bug!
> I do not have time now to make this kind of patch (CURLOPT_FILETIME) as our
> customer wants a solution very quickly (end of this month, we have to
> deliver a first release).

Hey, there are plenty of work days left until then! ;-)

> Do you think it would be possible to also retrieve the remote file size with
> sftp?

Sure, the size is retrievable with libssh2 using the same function call that
we'd get the "filetime" with.

We already do this "fake HTTP" style output if you ask for info for a specific
FTP file with NOBODY set, and it might make sense (and not be very hard) to
offer the same style output for SFTP as well.

List admin:
Received on 2011-01-06