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上传时,文件名称为空 #11

Closed
changqings opened this issue Feb 8, 2022 · 1 comment · May be fixed by #12
Closed

sync上传时,文件名称为空 #11

changqings opened this issue Feb 8, 2022 · 1 comment · May be fixed by #12

Comments

@changqings
Copy link

比如使用
coscli -c xx.yaml sync 123.tgz cos://a/b/
上传成功后,在cos上的a桶,b/目录下,存在一个名称为空的文件,而非123.tgz
此处最好为(大部分软件都是这样实现的)应该修改一下,如果目的为目录,源为文件,则自动创建同名文件。
同理,在从桶上下载文件时,如果本地为目录,则应自动命名文件为桶文件名称,以结尾是否为‘/’进行目录或文件判断。

@changqings
Copy link
Author

Good job.

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

Successfully merging a pull request may close this issue.

1 participant