Blob存储命令无法处理文件名中的“ - ” [英] Blob Storage command can't handle a '-' in the filename

查看:112
本文介绍了Blob存储命令无法处理文件名中的“ - ”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在unix BASH脚本中运行以下命令:

I am running the following command in a unix BASH script:

az storage blob download --container-name $ BLOBContainer --name Myfiles / $ FileName  --file ./$ FileName

az storage blob download --container-name $BLOBContainer --name Myfiles/$FileName  --file ./$FileName

命令错误输出,因为文件名中包含' - '(短划线字符),命令认为它是一个新参数。

The command errors out because the filename has a '-' (dash character) in it, and the command thinks it is a new parameter.

如何指定存储在BLOB中的文件名中包含' - '字符。  

How can I specify a filename stored on the BLOB that has a '-' character in it.  

我无法重命名或复制这是因为它有同样的问题。 我试着用引号括起文件名 - 这也不起作用。

I can't rename or copy it because that has the same issue.  I tried enclosing the filename in quotes - that didn't work either.

推荐答案

感谢您发帖,您能否分享您收到的完整错误消息以及当前使用的AZ CLI版本?
Thanks for posting, Can you share the full error message you are receiving as well as which AZ CLI version currently used?


这篇关于Blob存储命令无法处理文件名中的“ - ”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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