由于Azcopy将gcloud存储的https地址视为本地地址,它会在当前路径之前添加“/”来表示绝对路径,从而导致拷贝操作失败。为了解决这个问题,我们需要在使用Azcopy拷贝gcloud存储的文件时,将url中的“https://storage.googleapis.com/”替换成“https://storage.googleapis.com”来避免路径问题。
示例代码如下:
azcopy copy "https://storage.googleapis.com/example-bucket/abc.txt" "/path/to/local/folder" --recursive=true
在使用Azcopy拷贝时,应该将gcloud存储地址的“https://storage.googleapis.com/”替换成“https://storage.googleapis.com”,以避免路径问题。