Skip to content
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

关于--sync参数的使用疑问 #221

Closed
sc-syf opened this issue Feb 25, 2019 · 1 comment
Closed

关于--sync参数的使用疑问 #221

sc-syf opened this issue Feb 25, 2019 · 1 comment

Comments

@sc-syf
Copy link

sc-syf commented Feb 25, 2019

据文档:

使用-s或者--sync参数,可以在下载文件夹时跳过本地已存在的相同文件(前提是下载文件夹是通过COSCMD的upload接口上传的,文件携带有 x-cos-meta-md5头部)

那么我是否可以,使用SDK上传文件,手动带上 x-cos-meta-md5 的头部。这样的话,再使用 coscmd 工具时, 能跳过本地已下载的文件么?

@lewzylu
Copy link
Collaborator

lewzylu commented Feb 25, 2019

是可以的,只要cos上的文件带有正确的x-cos-meta-md5,coscmd的-s参数就会生效(不然校验不了文件的一致性)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants