Skip to main content

ExternalFileResolver

Trait ExternalFileResolver 

Source
pub trait ExternalFileResolver: Send + Sync {
    // Required method
    fn resolve_external_file(
        &self,
        filename: &str,
    ) -> Result<Option<Arc<dyn Storage>>, Error>;
}
Expand description

Resolves file names from HDF5 External Data Files messages to storage.

Implementations are responsible for their own path security policy. The built-in FilesystemExternalFileResolver confines normal paths to a base directory and, on Unix, opens paths through an anchored directory handle without following symlinks. On non-Unix platforms it falls back to canonicalize-then-open, so attacker-writable resolver roots are out of scope there.

Required Methods§

Source

fn resolve_external_file( &self, filename: &str, ) -> Result<Option<Arc<dyn Storage>>, Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§