Skip to content

@sqlrooms/s3-utils / 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; })[]>