• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: misc
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, this option tells curl to store certain file
20metadata in extended file attributes. Currently, the URL is stored in the
21`xdg.origin.url` attribute and, for HTTP, the content type is stored in the
22`mime_type` attribute. If the file system does not support extended
23attributes, a warning is issued.
24