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

FS.truncate(..);
FS.unlink(..);
有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top