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: Nov 22 2024 at 16:03 UTC