Log In  


hi there!

i do not seem to be able to use store() whatsoever

i have these lines sitting in the body of my main.lua:

store("/desktop/hi.pod", {a=1, b=2})
store("hi.pod", {a=1, b=2})

line 1 does not write to /desktop
line 2 does not write to either /ram/cart or the cwd where the terminal i ran from is

if i execute the line in the terminal via ?share(...), it creates the files as expected.

i have mounted the cart using -u as well.

am i missing something?

1


Is your cart sandboxed? Only thing I can think of that could cause this.


isn't that what load -u does?


By all accounts, yes. However, I just ran some tests and it seems loading a sandboxed cart with -u still restricts where you can load/save things from/to. Also, store returns an error message when it encounters an issue, may want to print that for debugging (just add a ? to the start of a line as a shortcut to wrapping it in a print() call).

So for instance, you'd do it like this:

? store("/desktop/hi.pod", {a=1, b=2})
? store("hi.pod", {a=1, b=2})


[Please log in to post a comment]