Expand description
XMP sidecar file discovery.
Locates .xmp companion files alongside media assets using the same
naming conventions that Immich recognises:
photo.jpg.xmp(preferred โ includes the media extension)photo.xmp(fallback โ stem only)
Both patterns are probed case-insensitively so photo.CR2.XMP is found.
Functionsยง
- case_
insensitive_ ๐exists - Check whether a file exists using case-insensitive extension matching.
- find_
sidecar - Find the XMP sidecar companion for a media file, if one exists on disk.
- resolve_
case_ ๐insensitive - Scan the parent directory for a file whose name matches case-insensitively.