FileSystemAssetStore

Durable AssetStore that keeps asset content below root.

The storage URI is intentionally opaque and relative to this store's root, allowing the root directory to move without invalidating persisted DurableAsset metadata.

Constructors

Link copied to clipboard
constructor(root: Path)

Functions

Link copied to clipboard
open override fun delete(asset: DurableAsset)

Delete content represented by asset. Retention policy is implementation-specific.

Link copied to clipboard
open override fun open(asset: DurableAsset): InputStream

Open the content represented by asset. The caller must close the returned stream.

Link copied to clipboard
open override fun store(asset: MaterializableAsset): DurableAsset

Copy asset content to durable storage before its original location expires. The implementation derives DurableAsset.sizeBytes and DurableAsset.contentHash while copying the stream.