Update src/index.ts

This commit is contained in:
fwqaaq 2023-12-24 13:57:53 +08:00 committed by GitHub
parent 2d4ed1da90
commit a6132572d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ async function* listAll(bucket: R2Bucket, prefix: string, isRecursive: boolean =
prefix, prefix,
cursor, cursor,
delimiter: isRecursive ? undefined : '/', delimiter: isRecursive ? undefined : '/',
include: ['httpMetadata', 'customMetadata'],
}); });
for (const object of r2_objects.objects) { for (const object of r2_objects.objects) {
yield object; yield object;