You are reading a single comment by @ChristianW and its replies. Click here to read the full conversation.
  • OK - something works. I can somehow create a storage and fill it up with data.
    What does not work is removing it at runtime.

    So how to erase and recreate a Storage file on runtime?

    I can storage.eraseAll() but that would remove my code too.

    I can

    storage.write('name', [data], 0, large_value)

    but that gives me

    Uncaught Error: Unable to find or create file

    even if I 'overwrite' my current file.

    So I'll try to

    storage.compact(); // this seems to be necessary to actually free up the space
    storage.write('name', [data], 0, large_value):

    but run into errors too.

    Is Storage buggy or am I doing something wrong here?


Avatar for ChristianW @ChristianW started