Pergunta

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

FS.truncate(..);
FS.unlink(..);
Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top