cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Modification dates of files downloaded from a sftp server

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 Dec 2014 16:57:56 +0100 (CET)

On Fri, 12 Dec 2014, Jenkins, Peter (SLSA) wrote:

> I have been using curl to download files from a sftp server on AWS but I am
> concerned that the files have their creation/modification dates/times
> changed to the date and time of the download. This doesn't happen with other
> servers.
>
> Can I configure something so that the file date/time isn't changed?

Using -R?

  -R, --remote-time

     When used, this will make curl attempt to figure out the timestamp of the
     remote file, and if that is available make the local file get that same
     timestamp.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-12