MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / host_filesystem

Function host_filesystem

src/pglite/postgres_mod.rs:1949–1953  ·  view source on GitHub ↗
(host_path: &Path)

Source from the content-addressed store, hash-verified

1947}
1948
1949fn host_filesystem(host_path: &Path) -> Result<Arc<dyn virtual_fs::FileSystem + Send + Sync>> {
1950 let host_fs = SyncHostFileSystem::new(host_path)
1951 .with_context(|| format!("create host fs rooted at {}", host_path.display()))?;
1952 Ok(Arc::new(host_fs) as Arc<dyn virtual_fs::FileSystem + Send + Sync>)
1953}
1954
1955fn fs_trace_enabled() -> bool {
1956 env_flag_enabled("PGLITE_OXIDE_WASIX_FS_TRACE")

Calls

no outgoing calls