unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Downloadiong and file dates
@ 2010-01-04  2:07 Lennart Borgman
  2010-01-04 22:20 ` James Cloos
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2010-01-04  2:07 UTC (permalink / raw)
  To: Emacs-Devel devel

When downloading a file from Launchpad's repository's web interface
the downloaded file does not get the right modified/creation time.

The headers in a buffer downloaded with url-retrieve-synchronously says

HTTP/1.1 200 OK
Date: Mon, 04 Jan 2010 01:50:08 GMT
Server: PasteWSGIServer/0.5 Python/2.5.2
Content-Type: application/octet-stream
Content-Length: 13071
Content-Disposition: attachment; filename*=utf-8''foldit.el
Via: 1.1 bazaar.launchpad.net
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Language: el


The "Date" is obviously now when I tested. That seems correct. However
it would be good to have the modification time for the file too. There
is a "Last-Modified" header that perhaps could be used for this. Would
that be correct use for that header?

And how does url-copy-file handle this? This function has an argument
named `keep-time' but it is not easy to see where and how it is used.
From the doc string it looks liike it preserves the date of an old
local file.

Does url-copy-file take care of "Last-Modified" if present? Should it?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-04 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-04  2:07 Downloadiong and file dates Lennart Borgman
2010-01-04 22:20 ` James Cloos
2010-01-04 22:38   ` Lennart Borgman
2010-01-04 22:56     ` Lennart Borgman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).