سؤال

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