Skip to main content

discover_catalog_paths

Function discover_catalog_paths 

Source
pub fn discover_catalog_paths() -> Vec<PathBuf>
Expand description

Discover XML catalog files using libxml2-compatible rules.

  1. If the XML_CATALOG_FILES environment variable is set, split it on whitespace and use those paths. Each entry can be a plain path or a file:// URI. This overrides the default list entirely.
  2. Otherwise, return conventional_paths for the current OS.

The returned list contains paths that might exist; callers should filter for paths that actually do (or rely on load_default which silently skips missing files).