bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Download files and preserve their data and time


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] Download files and preserve their data and time
Date: Sat, 20 Aug 2011 11:49:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"David H. Lipman" <address@hidden> writes:

> I don't know when it happened, probably when I upgraded WGET, but when I 
> download files 
> thedy inherit the date and time of the file of when they were downloaded.
>
> It used to be that when the file was downloaded, it retained the date and 
> time of the file 
> it had on the server.  Not when it was downloaded.
>
> How can I force WGET to return to that condition ?

it has to work in the same way as it used to do.  It seems to work well
here, using the last revision from the source repository:

$ LANG=C ./wget -q -d http://www.gnu.org/graphics/gnu-head-mini.png 2>&1 | grep 
^Last-Modified
Last-Modified: Sun, 05 Dec 2010 20:58:51 GMT

$ LANG=C stat gnu-head-mini.png  | grep ^Modify
Modify: 2010-12-05 21:58:51.000000000 +0100

Can you please provide more information?  What version of wget (wget
--version)?  What operating system?  Do you get a different output using
that two commands?

This is also useful for debugging, do you see something different?

$ LANG=C strace -e utimensat ./wget -q 
http://www.gnu.org/graphics/gnu-head-mini.png
utimensat(4, NULL, {{1313833704, 0}, {1291582731, 0}}, 0) = 0

Thanks,
Giuseppe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]