Question

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

FS.truncate(..);
FS.unlink(..);
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top