Skip to main content

find_sidecar

Function find_sidecar 

Source
pub fn find_sidecar(media_path: &Path) -> Option<PathBuf>
Expand description

Find the XMP sidecar companion for a media file, if one exists on disk.

Returns the preferred <name>.<ext>.xmp path when present, otherwise falls back to <stem>.xmp. Returns None when neither exists.