Optionaloptions: OPFSStorageBackendOptionsList entry names of a directory; directory names end with /. Missing directories list as empty.
Acquire 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.
Release a lock acquired with lock().
Create or replace a file. Should replace the file atomically.
StaticisWhether OPFS is available in the current environment.
Stores databases in the Origin Private File System (OPFS). Used for
opfs://locations by default when the browser supports OPFS.Opening a database takes a Web Lock, so a database can be open in only one tab or worker at a time.