Frage

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

FS.truncate(..);
FS.unlink(..);
War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top