为什么此gcloud计算副本文件会产生错误消息? [英] Why is this gcloud compute copy-files producing an error message?
问题描述
当我执行命令
gcloud计算副本文件"C:\ Users \ fName lName \ Desktop \ testtext.txt" instancename:test.txt --zone europe-west1-a
gcloud compute copy-files "C:\Users\fName lName\Desktop\testtext.txt" instancename:test.txt --zone europe-west1-a
我收到错误:"All sources must be local files when the destination is remote."
.
任何人都可以帮助我找出问题所在吗?
Can anyone help me figure out what is wrong?
推荐答案
谢谢你问这个!这似乎是我们正在跟踪的gcloud中的错误.问题是gcloud compute copy-files
会将C:\Users\fNam...
中的冒号解释为远程路径的一部分.正如乔治的答案所建议的,解决方法是避免包含冒号字符的本地路径.
Thanks asking this! This appears to be a bug in gcloud that we're now tracking. The issue is that gcloud compute copy-files
is interpreting the colon in C:\Users\fNam...
as a part of a remote path. As suggested by George's answer, the work around is to avoid local paths containing the colon character.
这篇关于为什么此gcloud计算副本文件会产生错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!