Skip to content

LocalStorageClient

Adapter in @evolve-framework/core

Stores files on the local disk, as <path>/<bucket>/<key>, for development and tests.

A bucket or key that would land outside path, such as ../x, is refused: the cloud adapters treat both as plain object names, so a key that walks up the directory tree is a mistake and not a location.

import { LocalStorageClient } from "@evolve-framework/core/storage";
new LocalStorageClient(path?: string)
MethodDescription
save( bucket: string, key: string, data: string, _options?: SaveOptions, ): Promise<void>Writes data as the object key in bucket, replacing what was stored there, with options.ContentType as its content type.