-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows command line arguments - problems with " and \ #464
Comments
After a quick look this does look like a bug. Rclone is treating "remote:Windows Fat" as a local directory rather than a remote. Will investigate further! |
is it because I started with a root drive? or because of fat32? or windows keyword? either way it's baffling how simple the workaround is... |
I'm away from my computer at the moment - I'll check the source when I get back and all will become clear! |
Use However, there is something weird in the args parsing. |
I think you must have written this originally
In the pastebin the first line is
indicating that Windows thought rclone was being run with two arguments
So I think this is caused by oddities in the windows command line parser as Klaus suggested, so
Should fix it This is caused ultimately by CommandLineToArgvW which states: CommandLineToArgvW has a special interpretation of backslash characters when they are followed by a quotation mark character ("), as follows:
The original command line had a mis-matched quote |
thanks guys, that answers that, sorry for such a silly question! I'll remember this for the future. |
@left1000 I don't think this is a silly question at all - it exposes a bit of windows oddness. I should probably put this either in the docs somewhere! |
I've made another issue to write some more docs on the windows shell here #473 I'll close this ticket now as I think we've got to the bottom of it. |
rclone copy -v --log-file=logfile.txt "F:" "remote:Windows Fat"
http://pastebin.com/MQzkR18y
doesn't work at all, error makes no sense and for some reason rclone creates new folders inside it's own folder named Fat and Fat_
yet somehow
rclone copy -v --log-file=logfile.txt "F:\4" "remote:Windows Fat\4"
worked perfectly! but... ideally I'd like to backup this entire drive all at once and I have no idea why I can't
I very clumsily moved every single file from the F drive into a subfolder of F:\ called F and then the transfer copy command worked
I tried this in 1.27 and 1.29
oh in case it wasn't clear "Fat" is what I named the drive because it's in fat32 because I used it a long time ago. I'm not sure if that matters.
The text was updated successfully, but these errors were encountered: