hugo der hungrige
hugo der hungrige

Reputation: 12912

How to reserve disk space for electron app

For my electron app, I'd like to make sure that writing to it's database (IndexedDB) still functions, even when the user's hard drive is full for some reason. Is it possible to somehow reserve disk space for this purpose?

Upvotes: 0

Views: 222

Answers (1)

Will Hartung
Will Hartung

Reputation: 118691

Sure, pre-insert rows and then update them later, rather than insert them when you need them. Mind, depending on the IndexedDB implementation, this may or may not work (depending on how updates are done).

So, you'll want to test it first.

Upvotes: 1

Related Questions