xref: /curl/docs/cmdline-opts/xattr.md (revision 2abfc759)
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, the URL is stored in the `xdg.origin.url`
21attribute and, for HTTP, the content type is stored in the `mime_type`
22attribute. If the file system does not support extended attributes, a warning
23is issued.
24