From dc91d2fce38241ac353711f91d9c35f7085634fa Mon Sep 17 00:00:00 2001 From: maslow Date: Tue, 12 Dec 2023 21:37:47 +0800 Subject: [PATCH] refactor(cloud-sdk): refactor listFiles paramsof cloud sdk (#1735) --- packages/cloud-sdk/src/storage.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/cloud-sdk/src/storage.ts b/packages/cloud-sdk/src/storage.ts index 67a3483424..3c2e3374d6 100644 --- a/packages/cloud-sdk/src/storage.ts +++ b/packages/cloud-sdk/src/storage.ts @@ -267,15 +267,11 @@ export class CloudStorageBucket { * @returns * @see https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html */ - public async listFiles( - prefix?: string, - options?: Omit - ) { + public async listFiles(options?: Omit) { const internal = this.storage.getInternalS3Client() const args: ListObjectsCommandInput = { Bucket: this.name, - Prefix: prefix, ...options, } const res = await internal.listObjects(args)