Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing files and directories? #408

Open
rubyFeedback opened this issue Mar 3, 2024 · 0 comments
Open

Accessing files and directories? #408

rubyFeedback opened this issue Mar 3, 2024 · 0 comments

Comments

@rubyFeedback
Copy link

It seems the current working directory is /, in ruby.wasm. By default this appears
to be empty - I tried via Dir['*'].

I also don't seem to be able to create anything, or read from files.

I'd love to be able to do both, but reading from a file is more important. My initial
idea was to "componentize" my smaller gems into Strings that can be evaluated
via ruby.wasm. But if I can not read any file or find them then this strategy does
not work.

Is there a way to query a file's content still? Even javascript has that option available
at the least if you e. g. place a .js file onto the webserver and then load it locally.

Right now I am not sure how to do this via ruby.wasm which kind of limits the way
I can use it. At any rate, thank you for reading this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant