Skip to content

Commit

Permalink
feat: Users can now mount a Directory (backed by an in-memory files…
Browse files Browse the repository at this point in the history
…ystem) when spawning WASIX instances
  • Loading branch information
Michael-F-Bryan committed Nov 24, 2023
1 parent 489fbce commit 98e5d92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fs/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ impl Directory {
Directory::default()
}

/// Read the contents of a directory.
#[wasm_bindgen(js_name = "readDir")]
pub async fn read_dir(&self, mut path: String) -> Result<ListOfStrings, Error> {
if !path.starts_with('/') {
Expand Down

0 comments on commit 98e5d92

Please sign in to comment.