Delete all files in a directory/namespace. Idempotent.
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).
Memory has no directory entries, so removing a tree is removing every path under it — nested paths included, unlike OPFS where a subdirectory remains.
True when a file is stored at this path. For test assertions.
Memory has no directory entries, so a directory exists exactly while some file is stored under it — the same shape OPFS reports, minus empty folders.
Every stored path. For test assertions.
Retrieve a File by its path token
Re-date a stored file, so a test can age it past a sweep's threshold.
Persist a File, return an opaque path token stored in MediaAsset.file_path
The StorageProvider contract held in a Map. Used by Node tests and by anything that wants media files without OPFS.
Paths have the same shape as the OPFS provider's, so a test can read a
MediaAsset.file_pathand recognise it.