function listFilesWithMeta
listFilesWithMeta(prefix: string): Promise<StorageFileMeta[]>

List files (with size metadata) matching a prefix, sorted by name. For Bunny CDN the size comes from the Length field of the listing API.

Parameters

prefix: string

Return Type

Promise<StorageFileMeta[]>

Usage

import { listFilesWithMeta } from "docs/embed.ts";