WebAssemblyOS / wasmos

OS primitives and shell for AssembyScript and WebAssembly
MIT License
42 stars 21 forks source link

Anyone been able to switch directories with the fs? #100

Closed shlokKh closed 5 years ago

shlokKh commented 5 years ago

I have tried using both openDirectory and setting the fs.cwd to the corresponding file descriptor for the new directory, but neither seem to be changing the current current directory.

willemneal commented 5 years ago

I found a bug in my code. I have a flag for when the fs is initialized and I didn't set it afterward. I pushed to your PR and it's passing your test now.