Mark a file written via createWritable() as ready for reliable reads. Providers that mirror to a secondary backend (e.g. Cache API) use this to backfill from the primary write target. No-op for OPFS-only. Best-effort — failures are logged but do not throw.
Open a seekable writable stream for large outputs (export MP4, proxy). Returns writable: null if backend doesn't support streaming writes. Callers MUST check null and fall back to buffer mode (ArrayBufferTarget).
Delete a file by path token. Idempotent (no-op if missing).
Delete a directory and everything under it, the directory itself included. Idempotent. Use this (not clearDirectory) when the directory will never be written to again, so no empty directory is left occupying storage.
Absent when a worker cannot reach this storage (memory storage); exports then stay on the page.
List the entries directly inside a directory, files and subdirectories alike. Returns an empty array when the directory does not exist, and never creates it. Needed to find stored files that no database row points at.
Retrieve a File by its path token
Persist a File, return an opaque path token stored in MediaAsset.file_path
Delete all files in a directory/namespace. Idempotent.