2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-28 08:01:13 +08:00
|
|
|
Long: xattr
|
|
|
|
Help: Store metadata in extended file attributes
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: misc
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --xattr -o storage $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.21.3
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: remote-time write-out verbose
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2016-11-28 08:01:13 +08:00
|
|
|
---
|
|
|
|
When saving output to a file, this option tells curl to store certain file
|
|
|
|
metadata in extended file attributes. Currently, the URL is stored in the
|
|
|
|
xdg.origin.url attribute and, for HTTP, the content type is stored in
|
|
|
|
the mime_type attribute. If the file system does not support extended
|
|
|
|
attributes, a warning is issued.
|