Skip to content

Commit

Permalink
refactor(cloud-sdk): refactor listFiles paramsof cloud sdk (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Dec 14, 2023
1 parent b57dfe7 commit dc91d2f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/cloud-sdk/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ListObjectsCommandInput, 'Bucket' | 'Prefix'>
) {
public async listFiles(options?: Omit<ListObjectsCommandInput, 'Bucket'>) {
const internal = this.storage.getInternalS3Client()

const args: ListObjectsCommandInput = {
Bucket: this.name,
Prefix: prefix,
...options,
}
const res = await internal.listObjects(args)
Expand Down

0 comments on commit dc91d2f

Please sign in to comment.