xattr.md (706B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: xattr 5 Help: Store metadata in extended file attributes 6 Category: output 7 Added: 7.21.3 8 Multi: boolean 9 See-also: 10 - remote-time 11 - write-out 12 - verbose 13 Example: 14 - --xattr -o storage $URL 15 --- 16 17 # `--xattr` 18 19 Store metadata in the extended file attributes. 20 21 When saving output to a file, tell curl to store file metadata in extended 22 file attributes. Currently, `curl` is stored in the `creator` attribute, 23 the URL is stored in the `xdg.origin.url` attribute and, for HTTP, the content 24 type is stored in the `mime_type` attribute. If the file system does not 25 support extended attributes, a warning is issued.