Вопрос

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