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

批量删除无法指定区域 #403

Open
Jabriel828 opened this issue Sep 20, 2022 · 3 comments
Open

批量删除无法指定区域 #403

Jabriel828 opened this issue Sep 20, 2022 · 3 comments

Comments

@Jabriel828
Copy link

Jabriel828 commented Sep 20, 2022

如题
const config = new qiniu.conf.Config();
config.zone = qiniu.zone.Zone_as0
bucketManager.batch(deleteOperations)

@lihsai0
Copy link
Collaborator

lihsai0 commented Sep 21, 2022

批量操作无需指定区域。

会使用第一个 operation 的 bucket 自动识别所在区域。

@Jabriel828
Copy link
Author

我批量删除前,肯定有获取文件列表, 删除文件提示桶不存在,改了SDK代码打印后,发现用的是默认地址

@lihsai0
Copy link
Collaborator

lihsai0 commented Sep 27, 2022

@Jabriel828 您要删除的文件不在一个区域吗?批量操作只能操作同一个区域的文件

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