cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with filetime in FTP upload

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 25 Nov 2003 08:06:15 +0100 (CET)

On Mon, 24 Nov 2003, Juan Ignacio Hervás wrote:

> I have found that some of the locale files that have been uploaded have a
> wrong filetime in the remote disk:
> Local modification time is 21-11-2003
> Remote modification time is 24-11-2002 (so, one year back!!)

Since curl itself doesn't even attempt to change the time of the uploaded
files, you can safely assume that this is a feature of your FTP server
software.

> I think that libcurl is setting the modification time to the copy time but
> I don't know the problem with these files.

libcurl sets no time at all. The server sets it.

> My question is: Is there any way in libcurl to modify the modification time
> of the remote file?

If your server supports setting time with the MDTM command, you can try using
that. Otherwise, I don't think there's any documented ftp command that sets
the time of a file. MDTM is not present in any RFC.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-25