Skip to main content

create_file_module_with_provider

Function create_file_module_with_provider 

Source
pub fn create_file_module_with_provider(
    fs: Arc<dyn FileSystemProvider>,
) -> ModuleExports
Expand description

Create a file module that uses the given filesystem provider. The default create_file_module() uses RealFileSystem; callers can substitute a PolicyEnforcedFs or VirtualFileSystem for sandboxing.