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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.