3 ms·
> To summarize how the OPFS differs from the user-visible file system: > * The OPFS is subject to browser storage quota restrictions, just like any other origi
by tommiegannert 2y ago
> To summarize how the OPFS differs from the user-visible file system:
> * The OPFS is subject to browser storage quota restrictions, just like any other origin-partitioned storage mechanism (for example IndexedDB API). You can access the amount of storage space the OPFS is using via navigator.storage.estimate().
> * Clearing storage data for the site deletes the OPFS.
> * Permission prompts and security checks are not required to access files in the OPFS.
> * Browsers persist the contents of the OPFS to disk somewhere, but you cannot expect to find the created files matched one-to-one. The OPFS is not intended to be visible to the user.
> * It also has a set of synchronous calls available (other File System API calls are asynchronous) that can be run inside web workers only so as not to block the main thread.