From cde73c196d4f161b227fb924cd59cf02eaa33c03 Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Thu, 6 Jul 2017 17:30:48 +0200 Subject: Option to ignore mtime metadata entry. Currently, the swiftclient upload command passes a custom metadata header for each object (called object-meta-mtime), whose value is the current UNIX timestamp. When downloading such an object with the swiftclient, the mtime header is parsed and passed as the atime and mtime for the newly created file. There are use-cases where this is not desired, for example when using tmp or scratch directories in which files older than a specific date are deleted. This commit provides a boolean option for ignoring the mtime header. Change-Id: If60b389aa910c6f1969b999b5d3b6d0940375686 --- doc/source/cli.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/source') diff --git a/doc/source/cli.rst b/doc/source/cli.rst index 8d80d1b..8df95aa 100644 --- a/doc/source/cli.rst +++ b/doc/source/cli.rst @@ -188,7 +188,9 @@ Download option to redirect the output to a specific file or ``-`` to redirect to stdout. The ``--ignore-checksum`` is an option that turn off checksum validation. You can specify optional headers with the repeatable - cURL-like option ``-H [--header ]``. + cURL-like option ``-H [--header ]``. ``--ignore-mtime`` ignores the + ``x-object-meta-mtime`` metadata entry on the object (if present) and instead + creates the downloaded files with fresh atime and mtime values. Delete ------ -- cgit v1.2.1