How do I update a local file's timestamp to match the one on the server?

19 Views Asked by At

For historical reasons I like keeping the original timestamps when it matters, and I downloaded a large file with the browser instead of using wget (which preserves timestamps by default). Now I have that large file and instead of downloading it again, I'd rather update its timestamp if possible.

An idea would be to generate the unix timestamp from the original, and apply it with touch. But can wget do this?

I looked at wget's help, but it doesn't look like it can address my use case.

0

There are 0 best solutions below