1*6236dae4SAndroid Build Coastguard Worker--- 2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al. 3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl 4*6236dae4SAndroid Build Coastguard WorkerLong: xattr 5*6236dae4SAndroid Build Coastguard WorkerHelp: Store metadata in extended file attributes 6*6236dae4SAndroid Build Coastguard WorkerCategory: output 7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.21.3 8*6236dae4SAndroid Build Coastguard WorkerMulti: boolean 9*6236dae4SAndroid Build Coastguard WorkerSee-also: 10*6236dae4SAndroid Build Coastguard Worker - remote-time 11*6236dae4SAndroid Build Coastguard Worker - write-out 12*6236dae4SAndroid Build Coastguard Worker - verbose 13*6236dae4SAndroid Build Coastguard WorkerExample: 14*6236dae4SAndroid Build Coastguard Worker - --xattr -o storage $URL 15*6236dae4SAndroid Build Coastguard Worker--- 16*6236dae4SAndroid Build Coastguard Worker 17*6236dae4SAndroid Build Coastguard Worker# `--xattr` 18*6236dae4SAndroid Build Coastguard Worker 19*6236dae4SAndroid Build Coastguard WorkerWhen saving output to a file, tell curl to store file metadata in extended 20*6236dae4SAndroid Build Coastguard Workerfile attributes. Currently, `curl` is stored in the `creator` attribute, 21*6236dae4SAndroid Build Coastguard Workerthe URL is stored in the `xdg.origin.url` attribute and, for HTTP, the content 22*6236dae4SAndroid Build Coastguard Workertype is stored in the `mime_type` attribute. If the file system does not 23*6236dae4SAndroid Build Coastguard Workersupport extended attributes, a warning is issued. 24