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

cp 命令能否支持修改存量文件的存储类型? #81

Open
A-Circle-Zhang opened this issue Nov 18, 2024 · 0 comments
Open

cp 命令能否支持修改存量文件的存储类型? #81

A-Circle-Zhang opened this issue Nov 18, 2024 · 0 comments

Comments

@A-Circle-Zhang
Copy link

A-Circle-Zhang commented Nov 18, 2024

cp 命令的 --storage-class 选项只支持上传文件的时候设置,如果在 COS 内复制则会报错 --storage-class can only use in upload

但我需要通过 coscli 工具,批量修改存量文件的存储类型。

XCosStorageClass: storageClass,

我看到源代码里面 cosCopy 函数,似乎是支持 storageClass 的,但命令行层面进行了限制,不知道为什么,能否允许 COS 内复制时修改存储类型呢?

@A-Circle-Zhang A-Circle-Zhang changed the title cp 命令能否支持在 COS 上复制过程中修改存储类型? cp 命令能否支持修改存量文件的存储类型? Nov 18, 2024
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

1 participant