Stream: wasmtime

Topic: Writing files using WASI PreopenDir()


view this post on Zulip Alistair Cunningham (Apr 03 2024 at 17:08):

I'm writing a host and WASM guest in Golang, and am unable to get the WASM guest to write to files, even when allowing it to using WASI's PreopenDir(). Attached are my test source files. I've tried various combinations of paths in PreopenDir() and in the guest's ioutil.WriteFile(), but every time I get a "file does not exist" error. Any ideas on how to make this work?
test.go
wasi.go


Last updated: Oct 23 2024 at 20:03 UTC