I know I should probably know this but how do I refer to a path with a quotation mark in it?


#1

I accidentally copied files to my remote:path" instead of remote:path
Now when I try to refer to remote:path" it thinks I’m referring to remote:path
so how do I write a command to refer to remote:path" ?
I need to lsd/size/move/del/rmdir remote:path" somehow.

So I know ’ should fix it.
I tried ‘remote:path"’
which never worked
neither did remote:path’"’

weirdly though ‘remote:path"’
says:

2019/01/07 23:15:38 NOTICE: Local file system at : Replacing invalid characters
in “\rclone-v1.45\‘cleancachecrypt:C:’” to “\\?\D:\rclone-v1.45\‘cleancac
hecrypt_C_’”

and remote:path’"’
says:

2019/01/07 23:18:34 INFO : cleancache: Cache DB path: C:\Users\REDACTED\AppData
Local\rclone\cache-backend\cleancache.db
2019/01/07 23:18:34 INFO : cleancache: Cache chunk path: C:\Users\REDACTED\AppDa
ta\Local\rclone\cache-backend\cleancache
2019/01/07 23:18:34 INFO : cleancache: Chunk Memory: true
2019/01/07 23:18:34 INFO : cleancache: Chunk Size: 5M
2019/01/07 23:18:34 INFO : cleancache: Chunk Total Size: 500M
2019/01/07 23:18:34 INFO : cleancache: Chunk Clean Interval: 1m0s
2019/01/07 23:18:34 INFO : cleancache: Workers: 4
2019/01/07 23:18:34 INFO : cleancache: File Age: 8.333333333333334M
2019/01/07 23:18:43 INFO : cleancache: Cache DB path: C:\Users\REDACTED\AppData
Local\rclone\cache-backend\cleancache.db
2019/01/07 23:18:43 INFO : cleancache: Cache chunk path: C:\Users\REDACTED\AppDa
ta\Local\rclone\cache-backend\cleancache
2019/01/07 23:18:43 INFO : cleancache: Chunk Memory: true
2019/01/07 23:18:43 INFO : cleancache: Chunk Size: 5M
2019/01/07 23:18:43 INFO : cleancache: Chunk Total Size: 500M
2019/01/07 23:18:43 INFO : cleancache: Chunk Clean Interval: 1m0s
2019/01/07 23:18:43 INFO : cleancache: Workers: 4
2019/01/07 23:18:43 INFO : cleancache: File Age: 8.333333333333334M
2019/01/07 23:18:43 ERROR : : error listing: directory not found
2019/01/07 23:18:43 Failed to lsd: directory not found

EDIT: oh and in case it matters I created this mess by stupid typing:

rclone copy “C:\temp” “remote:C:”

This was wrong as both the local path and remote path had an extra \ stupidly… but I don’t see why repeating my mistake won’t let me fix it (it doesn’t seem to though)

as
“remote:C:”
doesn’t work
and
“remote:C:\” just refers to remote:C:
I can’t for the life of me guess how to refer to C:" which is somehow a folder on my remote.
In case it isn’t clear C: is the path I mentioned up above and remote is both a cache and a crypt. I’ve used it 1000s of times before though so it’s clearly configured correctly, the error isn’t in the remote, it’s in my typing of the path.
Although like above the first one gives the instant error and the second one gives the lengthier error.

edit: I went to google drive and just deleted the folder there, that was easy and fast in my webbrowser… but still… this is a mystery I’d love an answer to. It should be noted I’m on windows7.

edit2: despite being deleted from google drive and showing in lsd crypt: as deleted, it’s still showing as existing in cachecrypt: but I guess that’ll eventually sync and fix itself somehow


#2

I think in Windows you can escape a quote by doubling it so "".