为什么此gcloud计算副本文件会产生错误消息? [英] Why is this gcloud compute copy-files producing an error message?

查看:66
本文介绍了为什么此gcloud计算副本文件会产生错误消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行命令

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆