Skip to content

@sqlrooms/s3-browser / listFilesAndDirectoriesWithPrefix

Function: listFilesAndDirectoriesWithPrefix()

listFilesAndDirectoriesWithPrefix(S3, bucket, prefix?): Promise<({ key: string; isDirectory: true; } | { key: string; isDirectory: false; lastModified: Date; size: number; contentType: string; })[]>

Parameters

ParameterType
S3S3Client
bucketstring
prefix?string

Returns

Promise<({ key: string; isDirectory: true; } | { key: string; isDirectory: false; lastModified: Date; size: number; contentType: string; })[]>