Skip to content

希望增加一个按文件类型枚举文件列表的API #411

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

Closed
490626721 opened this issue Jun 16, 2023 · 2 comments
Closed

希望增加一个按文件类型枚举文件列表的API #411

490626721 opened this issue Jun 16, 2023 · 2 comments

Comments

@490626721
Copy link

希望增加一个按文件类型枚举文件列表的API,比如我只想获取空间内的图片资源或者视频资源

@lihsai0
Copy link
Collaborator

lihsai0 commented Jun 16, 2023

@490626721

后端暂时没有这种功能,SDK 做的话也是列出来所有再过滤,所以大概率不会提供这样的 API。

建议您提前做好分类规划,例如:

  • 将图片资源与视频资源放在不同的 bucket 中;
  • 将图片资源与视频资源放在不同的前缀路径中,如 images/xxx.png, vidoes/xxx.mp4,随后使用前缀(images, videos)枚举文件。

@490626721
Copy link
Author

这样的啊,感谢!

@lihsai0 lihsai0 closed this as completed Jun 16, 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

No branches or pull requests

2 participants