From 5ca2a8318d0df95d24180b72040b21a21d9ba5ef Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Nov 2008 09:57:36 +0000 Subject: CURLINFO_FILETIME now works for file:// transfers as well --- lib/file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/file.c') diff --git a/lib/file.c b/lib/file.c index de5d52b32..b0af2fcd9 100644 --- a/lib/file.c +++ b/lib/file.c @@ -451,6 +451,8 @@ static CURLcode file_do(struct connectdata *conn, bool *done) if( -1 != fstat(fd, &statbuf)) { /* we could stat it, then read out the size */ expected_size = statbuf.st_size; + /* and store the modification time */ + data->info.filetime = (long)statbuf.st_mtime; fstated = TRUE; } -- cgit v1.2.3