Accessing files and directories?
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- ruby, wasm
研究方向
未指定來源檔案或測試。首先追蹤 ruby.wasm 如何公開 WASI 檔案系統存取,以及 Dir['*'] 在目前工作目錄中的行為;確定支援的讀取與建立語義。只有實作 issue 對檔案存取的預期,並由適當的測試涵蓋,或清楚記錄限制,才算完成。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Ruby
- 星號
- 876
- 分支
- 69
- 平均合併
- 9 天 5 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ruby/ruby.wasm 的其他 Issue
-
Web Browser Script URL Returns a 404可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 5/5 一週以上 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 25/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
eurosky-social/eu-haul#32 ·
-
good first issue
難度 2/5 1-3 小時 新手友好度 76/100
benbalter/add-to-org#17 ·
-
good first issue
難度 2/5 1-3 小時 新手友好度 76/100
benbalter/change_agent#11 ·
-
good first issue
難度 2/5 1-3 小時 新手友好度 82/100
benbalter/count-org-loc#20 ·
-
good first issue
難度 2/5 1-3 小時 新手友好度 85/100
benbalter/sitemap-parser#33 ·