Skip to content

touch: does not support --metadata-set #8928

@roucc

Description

@roucc

What is the problem you are having with rclone?

rclone touch -M --metadata-set key=val currently doesn't set the metadata.

It currently is not implemented although it should be!

What is your rclone version (output from rclone version)

rclone v1.71.0-DEV
- os/version: arch (64 bit)
- os/kernel: 6.17.4-arch2-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.3
- go/linking: dynamic
- go/tags: none

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

rclone master ❯ rclone touch -M --metadata-set potato=sausage TestAzureBlob:rclone/testM

rclone master ❮ rclone lsjson --stat -M TestAzureBlob:rclone/testM --dump bodies
2025/10/30 16:38:11 NOTICE: Automatically setting -vv as --dump is enabled
2025/10/30 16:38:11 DEBUG : rclone: Version "v1.71.0-DEV" starting with parameters ["rclone" "lsjson" "--stat" "-M" "TestAzureBlob:rclone/testM" "--dump" "bodies"]
2025/10/30 16:38:11 DEBUG : Creating backend with remote "TestAzureBlob:rclone/testM"
2025/10/30 16:38:11 DEBUG : Using config file from "/home/dougal/.config/rclone/rclone.conf"
2025/10/30 16:38:11 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/10/30 16:38:11 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/10/30 16:38:11 DEBUG : HTTP REQUEST (req 0xc0002fedc0)
2025/10/30 16:38:11 DEBUG : HEAD /rclone/testM HTTP/1.1
Host: rclone.blob.core.windows.net
User-Agent: rclone/
Accept: application/xml
Authorization: XXXX
X-Ms-Date: Thu, 30 Oct 2025 16:38:11 GMT
x-ms-version: 2025-05-05

2025/10/30 16:38:11 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/10/30 16:38:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/10/30 16:38:12 DEBUG : HTTP RESPONSE (req 0xc0002fedc0)
2025/10/30 16:38:12 DEBUG : HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Md5: 1B2M2Y8AsgTpgAmY7PhCfg==
Content-Type: application/octet-stream
Date: Thu, 30 Oct 2025 16:38:11 GMT
Etag: "0x8DE17D2AD2E0D30"
Last-Modified: Thu, 30 Oct 2025 16:37:54 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Access-Tier: Hot
X-Ms-Access-Tier-Inferred: true
X-Ms-Blob-Type: BlockBlob
X-Ms-Creation-Time: Thu, 30 Oct 2025 16:37:54 GMT
X-Ms-Lease-State: available
X-Ms-Lease-Status: unlocked
X-Ms-Meta-Mtime: 2025-10-30T16:37:54.844773500Z
X-Ms-Request-Id: 9f10675e-a01e-0022-33bb-4979e2000000
X-Ms-Server-Encrypted: true
X-Ms-Version: 2025-05-05
Content-Length: 0

2025/10/30 16:38:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/10/30 16:38:12 DEBUG : fs cache: renaming child cache item "TestAzureBlob:rclone/testM" to be canonical for parent "TestAzureBlob:rclone"
2025/10/30 16:38:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/10/30 16:38:12 DEBUG : HTTP REQUEST (req 0xc00051c500)
2025/10/30 16:38:12 DEBUG : HEAD /rclone/testM HTTP/1.1
Host: rclone.blob.core.windows.net
User-Agent: rclone/
Accept: application/xml
Authorization: XXXX
X-Ms-Date: Thu, 30 Oct 2025 16:38:12 GMT
x-ms-version: 2025-05-05

2025/10/30 16:38:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/10/30 16:38:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/10/30 16:38:12 DEBUG : HTTP RESPONSE (req 0xc00051c500)
2025/10/30 16:38:12 DEBUG : HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Md5: 1B2M2Y8AsgTpgAmY7PhCfg==
Content-Type: application/octet-stream
Date: Thu, 30 Oct 2025 16:38:11 GMT
Etag: "0x8DE17D2AD2E0D30"
Last-Modified: Thu, 30 Oct 2025 16:37:54 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Access-Tier: Hot
X-Ms-Access-Tier-Inferred: true
X-Ms-Blob-Type: BlockBlob
X-Ms-Creation-Time: Thu, 30 Oct 2025 16:37:54 GMT
X-Ms-Lease-State: available
X-Ms-Lease-Status: unlocked
X-Ms-Meta-Mtime: 2025-10-30T16:37:54.844773500Z
X-Ms-Request-Id: 9f106763-a01e-0022-36bb-4979e2000000
X-Ms-Server-Encrypted: true
X-Ms-Version: 2025-05-05
Content-Length: 0

2025/10/30 16:38:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
{
	"Path": "testM",
	"Name": "testM",
	"Size": 0,
	"MimeType": "application/octet-stream",
	"ModTime": "2025-10-30T16:37:54.844773500Z",
	"IsDir": false,
	"Tier": "Hot",
	"Metadata": {
		"mtime": "2025-10-30T16:37:54.844773500Z",
		"tier": "Hot"
	}
}
2025/10/30 16:38:12 DEBUG : 6 go routines active

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions