[GDrive] moveto command repeatedly escapes already-encoded / character in name

What is the problem you are having with rclone?

I know the difference between the "/" and the "/" character, and when I run "rclone lsd gdrive:my_folder" it returns something like

0 2025-05-26 05:00:22        -1 (Shared w/ Me)

on a normal google drive where the properly-encoded "/" character was used. I read Overview of cloud storage systems about restricted characters being escaped with the ` character, but I have (many, many) folder names in this drive which accidentally replaced the "/" with a "-" character — so I thought I'd do the natural thing and run something like:

rclone moveto --metadata gdrive:my_folder/"(Shared w- Me)" gdrive:my_folder/"(Shared w/ Me)"

but this produces

0 2025-05-26 04:48:03        -1 (Shared w‛/ Me)

even though it was the already-encoded special forward-slash character. This leaves me in the awkward position of executing the following command:

rclone moveto --metadata gdrive:my_folder/"(Shared w‛/ Me)" gdrive:my_folder/"(Shared w/ Me)"

always resulting in the same idempotent result? What do I do here?

Run the command 'rclone version' and share the full output of the command.

rclone v1.67.0

  • os/version: darwin 10.15.5 (64 bit)
  • os/kernel: 19.5.0 (x86_64)
  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: dynamic
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone moveto --metadata gdrive:my_folder/"(Shared w‛/ Me)" gdrive:my_folder/"(Shared w/ Me)"

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

A log from the command that you were trying to run with the -vv flag

(Only going to share some of the output)

2025/05/26 05:34:20 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "moveto" "--metadata" "-vv" "gdrive:my_folder/(Shared w‛/ Me)/" "gdrive:my_folder/(Shared w/ Me)/"]
2025/05/26 05:34:20 DEBUG : Creating backend with remote "gdrive:my_folder/(Shared w‛/ Me)/"
2025/05/26 05:34:20 DEBUG : Using config file from "/Users/my_user/.config/rclone/rclone.conf"
...
2025/05/26 05:34:21 DEBUG : fs cache: renaming cache item "gdrive:my_folder/(Shared w‛/ Me)/" to be canonical "gdrive:my_folder/(Shared w‛/ Me)/"
2025/05/26 05:34:21 DEBUG : Creating backend with remote "gdrive:my_folder/(Shared w/ Me)/"
...
2025/05/26 05:34:24 DEBUG : Google drive root 'my_folder/(Shared w/ Me)': Using server-side directory move
2025/05/26 05:34:25 INFO  : Google drive root 'my_folder/(Shared w/ Me)': Server side directory move succeeded
2025/05/26 05:34:25 INFO  :
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Elapsed time:         4.3s