From 98e5d92466763439201a2849ff3d96c2a073f8e2 Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Fri, 24 Nov 2023 22:53:35 +0800 Subject: [PATCH] feat: Users can now mount a `Directory` (backed by an in-memory filesystem) when spawning WASIX instances --- src/fs/directory.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fs/directory.rs b/src/fs/directory.rs index a6060a3e..cbd33fb5 100644 --- a/src/fs/directory.rs +++ b/src/fs/directory.rs @@ -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 { if !path.starts_with('/') {