Skip to main content

detect_file

Function detect_file 

Source
pub fn detect_file(path: &Path) -> Option<&'static Schema>
Expand description

The schema vintage a file declares, or None if it cannot be read or is unrecognised.

A zip archive is opened for its first CIM/XML entry, since a model set often arrives as one. Unreadable is not an error here: Dataset::open moves on to the next file.