Foldernames get weird "in them

What is the problem you are having with rclone?

Downloading files in subfolders from Google Shared Drives sometimes adds a space and " to their folder names. " is not the same as " double quotes. I'm not really sure what ascii character it is and how to avoid it.

What is your rclone version (output from rclone version)

rclone v1.53.1
- os/arch: windows/amd64
- go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows Server 2016 64bit

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

Google Shared Drives

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

rclone --drive-team-drive "$TeamDriveIDSRC" copy gdrives:$gfilepathSRC $gfilepathDEST

The rclone config contents with secrets removed.

[gdrives]
type = drive
client_id = 9999999999999.apps.googleusercontent.com
client_secret = 9999999999999999
scope = drive
token = {"access_token":"999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999","token_type":"Bearer","refresh_token":"999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999","expiry":"2020-10-06T04:06:40.5728247Z"}
team_drive = 0AH99999999999PVA
root_folder_id =
export_formats = docx,xlsx,pptx,svg

A log from the command with the -vv flag

rclone : 2020/10/06 03:35:05 DEBUG : rclone: Version "v1.53.1" starting with parameters 
["F:\\rclone-v1.53.1-windows-amd64\\rclone.exe" "--drive-team-drive" "0AJyx999999999k9PVA" "-vv" "copy" 
"gdrives:1. Master Agent Third Party List\\Archieved Master List Files\\2019-Mar-20 Master List of 3rd Party 
Agents.xlsx" "f:\\Converted-gfiles\\Compliance\\1. Master Agent Third Party List\\Archieved Master List Files\""]
At C:\Users\kla-admin\Desktop\Convert-GsuiteFormats.ps1:44 char:5
+     rclone --drive-team-drive "$TeamDriveIDSRC" -vv copy gdrives:$fin ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (2020/10/06 03:3... List Files\""]:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
2020/10/06 03:35:05 DEBUG : Using config file from "C:\\Users\\kla-admin\\.config\\rclone\\rclone.conf"
2020/10/06 03:35:05 DEBUG : Creating backend with remote "gdrives:1. Master Agent Third Party List\\Archieved 
Master List Files\\2019-Mar-20 Master List of 3rd Party Agents.xlsx"
2020/10/06 03:35:06 DEBUG : fs cache: adding new entry for parent of "gdrives:1. Master Agent Third Party 
List\\Archieved Master List Files\\2019-Mar-20 Master List of 3rd Party Agents.xlsx", "gdrives:1. Master Agent 
Third Party List/Archieved Master List Files"
2020/10/06 03:35:06 DEBUG : Creating backend with remote "f:\\Converted-gfiles\\Compliance\\1. Master Agent Third 
Party List\\Archieved Master List Files\""
2020/10/06 03:35:06 DEBUG : fs cache: renaming cache item "f:\\Converted-gfiles\\Compliance\\1. Master Agent Third 
Party List\\Archieved Master List Files\"" to be canonical "//?/f:/Converted-gfiles/Compliance/1. Master Agent 
Third Party List/Archieved Master List Files\""
2020/10/06 03:35:06 DEBUG : 2019-Mar-20 Master List of 3rd Party Agents.xlsx: Need to transfer - File not found at 
Destination
2020/10/06 03:35:08 DEBUG : 2019-Mar-20 Master List of 3rd Party Agents.xlsx: MD5 = 
903e186b110f7b32229ca2f38c8fa9f8 OK
2020/10/06 03:35:08 INFO  : 2019-Mar-20 Master List of 3rd Party Agents.xlsx: Copied (new)
2020/10/06 03:35:08 INFO  : 
Transferred:   	  308.533k / 308.533 kBytes, 100%, 272.822 kBytes/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         3.1s
2020/10/06 03:35:08 DEBUG : 5 go routines active

hello,

if you are going to quote the remotes, try removing the trailing slash from paths.
"List Files" not "List Files\"

Second solve you've provided for me. Thanks.

glad to help.

the \" is a known problem on windows batch files.
the batch file use \ as an escape character

for example
https://ss64.com/nt/robocopy.html

If either the source or desination are a "quoted long foldername" do not include a trailing backslash as this will be treated as an escape character

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.