Domanda

How to correctly remove data file in emscripten's FS? Currently i'm using:

FS.truncate(..);
FS.unlink(..);
È stato utile?

Soluzione

Unlink usually sufficient, memory will be freed without truncate before, if there is no other links to this file.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top