Re: Naming ETag files?
Paul Gilmartin via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
On 1/15/23 05:19:32, Timothe Litt via curl-users wrote:
> ...
> If the filesystem supports extended attributes, an even better place would be to store the etag there, since in that case, moving, copying, renaming would automagically ensure that the etag is carried along. Linux xattr, Mac forks, NTFS 'streams', etc..
Interesting. The Mac and Linux xattr commands have a useful compatible
overlap. So I could download with:
--etag-save tempfile.ETag
tnen:
xattr -w user.aETag "$( cat tempfile.ETag )" downloaded-resource
... and reverse the process for --etag-compare for the next conditional
download.
> Timothe Litt
> ACM Distinguished Engineer
> ------------------------
--
gil
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette: https://curl.se/mail/etiquette.html