There was an error while loading. Please reload this page.
1 parent a6a8a7f commit c5d6c3fCopy full SHA for c5d6c3f
1 file changed
crates/wasi-common/cap-std-sync/src/lib.rs
@@ -120,18 +120,6 @@ impl WasiCtxBuilder {
120
let dir = Box::new(crate::dir::Dir::from_cap_std(dir));
121
Ok(WasiCtxBuilder(self.0.preopened_dir(dir, guest_path)?))
122
}
123
-
124
- pub fn preopened_path(
125
- self,
126
- host_path: impl AsRef<Path>,
127
- guest_path: impl AsRef<Path>,
128
- ) -> Result<Self, Error> {
129
- let host_path = host_path.as_ref();
130
- let dir = unsafe { Dir::open_ambient_dir(host_path) }
131
- .with_context(|| format!("Failed to preopen host path: {:?}", host_path))?;
132
- self.preopened_dir(dir, guest_path)
133
- }
134
135
pub fn build(self) -> Result<WasiCtx, Error> {
136
self.0.build()
137
0 commit comments