mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
This indicates that the file was created by curl which can help a user determine the origin of a file. Like the other attributes, this is only enabled with the --xattr option. Closes #15237
657 B
657 B
c | SPDX-License-Identifier | Long | Help | Category | Added | Multi | See-also | Example | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | curl | xattr | Store metadata in extended file attributes | output | 7.21.3 | boolean |
|
|
--xattr
When saving output to a file, tell curl to store file metadata in extended
file attributes. Currently, curl
is stored in the creator
attribute,
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.