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

List files (with size metadata) matching a path prefix, sorted by name. The prefix may name a subfolder (see splitListingPrefix); returned names always include that folder so callers can download/delete them directly. 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 "doc.ts";