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

feature: 增加上传多文件时的文件过滤 #76

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

arrebole
Copy link
Contributor

@arrebole arrebole commented Mar 28, 2023

例如上传 png 文件

upx upload ./tmp/*.png --remote /image

@arrebole arrebole force-pushed the next branch 8 times, most recently from aa679d1 to 1d8ceb3 Compare March 29, 2023 07:55
session.go Outdated
var uploadedFile []*UploadedFile
for _, localPath := range files {
isDir := false
if upInfo, _ := sess.updriver.GetInfo(upPath); upInfo != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个在循环之外调用一次就可以了

@arrebole arrebole force-pushed the next branch 3 times, most recently from f2ea3a0 to 58f5805 Compare March 29, 2023 08:42
例如上传 png 文件
```bash
upx upload ./tmp/*.png --remote /tmp
```
@huangnauh huangnauh merged commit 33af537 into upyun:master Mar 29, 2023
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 this pull request may close these issues.

2 participants