Accessing files and directories?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Ruby
- Sterne
- 875
- Forks
- 68
- Ø Merge
- 9 T. 5 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Es wird keine Quelldatei oder kein Test genannt. Beginne damit nachzuverfolgen, wie ruby.wasm den Zugriff auf das WASI-Dateisystem bereitstellt und wie sich Dir['*'] im aktuellen Arbeitsverzeichnis verhält; ermittle die unterstützten Lese- und Erstellungssemantiken. Als abgeschlossen gilt die Aufgabe, wenn die Erwartungen des Issues an den Dateizugriff implementiert und durch geeignete Tests abgedeckt oder klar dokumentierte Einschränkungen festgehalten sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ruby, wasm
- Bereich
- operating-systems
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100