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