cURL / Mailing Lists / curl-library / Single Mail

curl-library

sftp directory listing

From: Eric <crc1021_at_myrealbox.com>
Date: Thu, 21 Aug 2008 10:35:01 -0500

To get a directory listing for FTP I set the URL to a directory and set CURLOPT_WRITEFUNCTION to a callback function that parses the lines.

That same methods works for SFTP, but the lines that come back have the same date/time limitations as the FTP listing, mainly the full date and time are not shown and it is displayed in local time. I believe SFTP protocol sends the full date in UTC. Is there an option in libcurl to get at the full UTC date/time for a directory listing?
Received on 2008-08-21