Skip to main content

Module files

Module files 

Source
Expand description

Files an account keeps beside its database, on either target: the filesystem natively, OPFS on the web. Async because OPFS only answers through promises; natively the calls are the same std::fs ones as before.

Functions§

list
The files directly inside dir; empty when it doesn’t exist.
read
read_cache
Read a Vector Cache file, sealed or from before sealing.
remove
rename
write
Replace path whole: a reader never sees a partial file.
write_cache
Write a Vector Cache file: sealed natively, so it is never a plain picture on disk.