List entry names of a directory; directory names end with /. Missing directories list as empty.
OptionallockAcquire an exclusive lock (for example across browser tabs). Rejects if it is held elsewhere.
Read a file. Resolves to null if it does not exist.
Remove a file or directory (recursively). Missing entries are ignored.
OptionalunlockRelease a lock acquired with lock().
Create or replace a file. Should replace the file atomically.
Storage backends for persistent databases (
CREATE DATABASE 'opfs://mydb').A backend stores the files of persistent databases. Paths are relative to the backend root and use
/as separator, for examplemydb/manifest.jsonormydb/segments/1.arrow.