Skip to main content

Module sidecar

Module sidecar 

Source
Expand description

XMP sidecar file discovery.

Locates .xmp companion files alongside media assets using the same naming conventions that Immich recognises:

  1. photo.jpg.xmp (preferred โ€“ includes the media extension)
  2. 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.